Skip to content

Commit

Permalink
Fix argument order of assert_called_with
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Aug 23, 2024
1 parent 72a6cb1 commit 43e2bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_coverity.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ def test_get_filtered_defects(self):
fake_node["filters"] = node_filters
with patch.object(CoverityDefectService, "get_defects") as mock_method:
sphinx_coverity_connector.get_filtered_defects(fake_node)
mock_method.assert_called_once_with(self.fake_stream, fake_snapshot, fake_node["filters"], column_names)
mock_method.assert_called_once_with(self.fake_stream, fake_node["filters"], column_names, fake_snapshot)
fake_node["chart_attribute"] = "Checker"
column_names.add("Checker")
sphinx_coverity_connector.get_filtered_defects(fake_node)
mock_method.assert_called_with(self.fake_stream, fake_snapshot, fake_node["filters"], column_names)
mock_method.assert_called_with(self.fake_stream, fake_node["filters"], column_names, fake_snapshot)

def test_failed_login(self):
"""Test a failed login by mocking the status code when validating the stream."""
Expand Down

0 comments on commit 43e2bdc

Please sign in to comment.