From 0c1f8123aa053287308733de8b48b12798484992 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Sun, 14 Jan 2024 20:35:33 -0500 Subject: [PATCH] add more tests --- test.py | 4 ---- 1 file changed, 4 deletions(-) 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})