Skip to content

Commit 3a48731

Browse files
committed
Fix test that now requires a working git repo
1 parent 5bc58c7 commit 3a48731

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/test_vcs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def test_git_resolve_revision_not_found_warning(get_sha_mock, caplog):
173173
sha = 40 * 'a'
174174
rev_options = Git.make_rev_options(sha)
175175

176-
new_options = Git.resolve_revision('.', url, rev_options)
177-
assert new_options.rev == sha
176+
# resolve_revision with a full sha would fail here because
177+
# it attempts a git fetch. This case is now covered by
178+
# test_resolve_commit_not_on_branch.
178179

179180
rev_options = Git.make_rev_options(sha[:6])
180181
new_options = Git.resolve_revision('.', url, rev_options)

0 commit comments

Comments
 (0)