From e7e0189264e3984a38290fe6618c7e4106f03a92 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 16 Jun 2022 06:21:04 -0600 Subject: [PATCH] Test config --- frigate/test/test_http.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frigate/test/test_http.py b/frigate/test/test_http.py index e24136101..e7b56d975 100644 --- a/frigate/test/test_http.py +++ b/frigate/test/test_http.py @@ -303,6 +303,16 @@ class TestHttp(unittest.TestCase): assert sub_labels assert sub_labels == [sub_label] + def test_config(self): + app = create_app( + FrigateConfig(**self.minimal_config).runtime_config, self.db, None, None, None + ) + + with app.test_client() as client: + config = client.get("/config").json + assert config + assert config["cameras"]["front_door"] + def _insert_mock_event(id: str) -> Event: """Inserts a basic event model with a given id.""" return Event.insert(