Skip to content

Commit

Permalink
Fix test that now requires a working git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Aug 30, 2020
1 parent 5bc58c7 commit 3a48731
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a48731

Please sign in to comment.