From 43e2bdc20c4138272a3383af07485d3575c9aa70 Mon Sep 17 00:00:00 2001 From: JWM Date: Fri, 23 Aug 2024 14:20:41 +0200 Subject: [PATCH] Fix argument order of assert_called_with --- tests/test_coverity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_coverity.py b/tests/test_coverity.py index f628330..a537fba 100644 --- a/tests/test_coverity.py +++ b/tests/test_coverity.py @@ -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."""