Autoupdate works. Closes #44.

This commit is contained in:
Anthony Sottile 2014-03-23 22:50:01 -07:00
parent 49da1ba72a
commit 26d563ee20
5 changed files with 104 additions and 7 deletions

View file

@ -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'