pre-commit migrate-config should not return nonzero when successful

This commit is contained in:
Anthony Sottile 2017-09-07 09:23:36 -07:00
parent 04018ad4e7
commit a78f5d5c24
4 changed files with 5 additions and 10 deletions

View file

@ -306,7 +306,7 @@ def test_updates_old_format_to_new_format(tmpdir, capsys):
' language: script\n',
)
ret = autoupdate(Runner(tmpdir.strpath, C.CONFIG_FILE), tags_only=True)
assert ret == 1
assert ret == 0
contents = cfg.read()
assert contents == (
'repos:\n'