Skip to content

Commit

Permalink
Fix unit test signature
Browse files Browse the repository at this point in the history
Adjust expected parameter to match new logic
  • Loading branch information
rscottbailey committed Jul 24, 2024
1 parent c4fe2cb commit 875047d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_git_repo_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_head_is_scanned_when_shallow_clone_is_found(self):
# This is all the stuff that happens for yielding the "first commit".
self.mock_repo.return_value.get.assert_called_once_with("commit-hash")
revparse = self.mock_repo.return_value.revparse_single
revparse.assert_called_once_with(mock_head.hex)
revparse.assert_called_once_with(str(mock_head.id))
tree = revparse.return_value.tree.diff_to_tree
tree.assert_called_once_with(swap=True)
self.mock_iter_diff.assert_called_with(tree.return_value)
Expand Down

0 comments on commit 875047d

Please sign in to comment.