Remove defaults before checking whether the intelligent rewrite was successful

This commit is contained in:
Anthony Sottile 2017-09-08 14:28:23 -07:00
parent 72e3989350
commit a821172d9d
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ def test_autoupdate_local_hooks(tempdir_factory):
runner = Runner(path, C.CONFIG_FILE)
assert autoupdate(runner, tags_only=False) == 0
new_config_writen = load_config(runner.config_file_path)
assert len(new_config_writen) == 1
assert len(new_config_writen['repos']) == 1
assert new_config_writen['repos'][0] == config