Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70e7d9c

Browse files
committed
Keep original test as is, for real
1 parent e5b8cb0 commit 70e7d9c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/commands/autoupdate_test.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ def test_autoupdate_out_of_date_repo(
114114
)
115115
write_config('.', config)
116116

117-
runner = Runner('.', C.CONFIG_FILE)
118117
before = open(C.CONFIG_FILE).read()
119-
# It will update the repo, because the name matches
120-
ret = autoupdate(runner, tags_only=False)
118+
ret = autoupdate(Runner('.', C.CONFIG_FILE), tags_only=False)
121119
after = open(C.CONFIG_FILE).read()
122120
assert ret == 0
123121
assert before != after
@@ -137,7 +135,6 @@ def test_autoupdate_out_of_date_repo_with_correct_repo_name(
137135
runner = Runner('.', C.CONFIG_FILE)
138136
before = open(C.CONFIG_FILE).read()
139137
repo_name = 'file://{}'.format(out_of_date_repo.path)
140-
# It will update the repo, because the name matches
141138
ret = autoupdate(runner, tags_only=False, repo=repo_name)
142139
after = open(C.CONFIG_FILE).read()
143140
assert ret == 0

0 commit comments

Comments
 (0)