Fix test that now requires a working git repo

This commit is contained in:
Stéphane Bidoul 2020-08-28 11:53:14 +02:00
parent 3aa0c2ed91
commit 5797a080b6
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ def test_git_resolve_revision_not_found_warning(get_sha_mock, caplog):
sha = 40 * 'a'
rev_options = Git.make_rev_options(sha)
new_options = Git.resolve_revision('.', url, rev_options)
assert new_options.rev == sha
# resolve_revision with a full sha would fail here because
# it attempts a git fetch. This case is now covered by
# test_resolve_commit_not_on_branch.
rev_options = Git.make_rev_options(sha[:6])
new_options = Git.resolve_revision('.', url, rev_options)