Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddhantSadangi committed Dec 23, 2024
1 parent 3fb062b commit 088bff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/neptune/new/internal/utils/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_get_repo_from_git_ref():
@patch("git.Repo")
def test_get_diff(mock_repo):
# when
get_diff(mock_repo, "some_ref", no_ext_diff=True)
get_diff(mock_repo, "some_ref")

# then
mock_repo.git.diff.assert_called_once_with("some_ref", index=False, no_ext_diff=True)
Expand All @@ -107,7 +107,7 @@ def test_get_diff_command_error(mock_repo):
mock_repo.git.diff.side_effect = git.GitCommandError("diff")

# when
diff = get_diff(mock_repo, "some_ref", no_ext_diff=True)
diff = get_diff(mock_repo, "some_ref")

# then
mock_repo.git.diff.assert_called_once_with("some_ref", index=False, no_ext_diff=True)
Expand Down

0 comments on commit 088bff2

Please sign in to comment.