From 2aeca7daf00d0fa25fbdeb564bce26198741d807 Mon Sep 17 00:00:00 2001 From: Rui Alves Date: Sun, 12 Jan 2025 22:17:42 +0000 Subject: [PATCH] Deleted unit tests for /events from test_http (updated tests are now in test_http_event.py) --- frigate/test/test_http.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/frigate/test/test_http.py b/frigate/test/test_http.py index 54c7b3ae9..8c89e0433 100644 --- a/frigate/test/test_http.py +++ b/frigate/test/test_http.py @@ -109,43 +109,6 @@ class TestHttp(unittest.TestCase): except OSError: pass - def test_get_event_list(self): - app = create_fastapi_app( - FrigateConfig(**self.minimal_config), - self.db, - None, - None, - None, - None, - None, - None, - None, - ) - id = "123456.random" - id2 = "7890.random" - - with TestClient(app) as client: - _insert_mock_event(id) - events = client.get("/events").json() - assert events - assert len(events) == 1 - assert events[0]["id"] == id - _insert_mock_event(id2) - events = client.get("/events").json() - assert events - assert len(events) == 2 - events = client.get( - "/events", - params={"limit": 1}, - ).json() - assert events - assert len(events) == 1 - events = client.get( - "/events", - params={"has_clip": 0}, - ).json() - assert not events - def test_get_good_event(self): app = create_fastapi_app( FrigateConfig(**self.minimal_config),