mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Autoupdate works. Closes #44.
This commit is contained in:
parent
49da1ba72a
commit
26d563ee20
5 changed files with 104 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
import pre_commit.constants as C
|
||||
from pre_commit.ordereddict import OrderedDict
|
||||
from pre_commit.yaml_extensions import ordered_dump
|
||||
from pre_commit.yaml_extensions import ordered_load
|
||||
|
|
@ -25,7 +26,7 @@ def test_ordered_dump():
|
|||
OrderedDict(
|
||||
(('a', 'herp'), ('c', 'derp'), ('b', 'harp'), ('d', 'darp'))
|
||||
),
|
||||
default_flow_style=False,
|
||||
**C.YAML_DUMP_KWARGS
|
||||
)
|
||||
assert ret == (
|
||||
'a: herp\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue