Skip to content

Commit 8569e00

Browse files
committed
Fixed unit tests.
1 parent 0cabf23 commit 8569e00

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

unittests/test_library.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ def test_verify_that_single_path(self, library, mock_genai, mock_logger):
102102
image_paths=["/path/to/image.png"],
103103
attachment_paths=[]
104104
)
105-
mock_logger.debug.assert_called_once_with("AI Response")
105+
mock_logger.debug.assert_any_call("AI Response")
106+
mock_logger.debug.assert_any_call("AI Result is: ==>pass<==")
107+
assert mock_logger.debug.call_count == 2
106108
mock_genai.extract_result_and_explanation_from_response.assert_called_once_with("AI Response")
107109
mock_logger.info.assert_called_once_with("Verification passed:\nTest passed")
108110

0 commit comments

Comments
 (0)