diff --git a/test.py b/test.py index 96aadf4..db85a6a 100644 --- a/test.py +++ b/test.py @@ -352,10 +352,8 @@ def test_get_snapshot_successful(self, mock_logger, mock_requests_get): frigate_event_id = 'event123' frigate_url = 'http://example.com' - # Call the function result = index.get_snapshot(frigate_event_id, frigate_url) - # Assertions self.assertEqual(result, b'image_data') mock_requests_get.assert_called_with(f"{frigate_url}/api/events/{frigate_event_id}/snapshot.jpg", params={"crop": 1, "quality": 95}) @@ -373,10 +371,8 @@ def test_get_snapshot_failure(self, mock_logger, mock_requests_get): frigate_event_id = 'event123' frigate_url = 'http://example.com' - # Call the function result = index.get_snapshot(frigate_event_id, frigate_url) - # Assertions self.assertIsNone(result) mock_requests_get.assert_called_with(f"{frigate_url}/api/events/{frigate_event_id}/snapshot.jpg", params={"crop": 1, "quality": 95})