Keep original test as is, for real
@@ -114,10 +114,8 @@ def test_autoupdate_out_of_date_repo(
)
write_config('.', config)
- runner = Runner('.', C.CONFIG_FILE)
before = open(C.CONFIG_FILE).read()
- # It will update the repo, because the name matches
- ret = autoupdate(runner, tags_only=False)
+ ret = autoupdate(Runner('.', C.CONFIG_FILE), tags_only=False)
after = open(C.CONFIG_FILE).read()
assert ret == 0
assert before != after
@@ -137,7 +135,6 @@ def test_autoupdate_out_of_date_repo_with_correct_repo_name(
runner = Runner('.', C.CONFIG_FILE)
before = open(C.CONFIG_FILE).read()
repo_name = 'file://{}'.format(out_of_date_repo.path)
- # It will update the repo, because the name matches
ret = autoupdate(runner, tags_only=False, repo=repo_name)
after = open(C.CONFIG_FILE).read()
assert ret == 0
