let pre-commit fix some stuff

This commit is contained in:
dmlb2000 2016-11-03 15:54:48 -07:00
parent 7f057b0bd5
commit 84b1fb6827
2 changed files with 5 additions and 1 deletions

View file

@ -64,14 +64,17 @@ def test_autofix_pretty_format_json(tmpdir):
ret = pretty_format_json([srcfile.strpath])
assert ret == 0
def test_orderfile_get_pretty_format():
ret = pretty_format_json(['--top-keys=alist', get_resource_path('pretty_formatted_json.json')])
assert ret == 0
def test_not_orderfile_get_pretty_format():
ret = pretty_format_json(['--top-keys=blah', get_resource_path('pretty_formatted_json.json')])
assert ret == 1
def test_badfile_pretty_format_json():
ret = pretty_format_json([get_resource_path('ok_yaml.yaml')])
assert ret == 1