From d98a4e9ef0093157518808bcf297dc947fcfd290 Mon Sep 17 00:00:00 2001 From: Priyavrat Sharma <52522330+priyavrat7@users.noreply.github.com> Date: Sat, 3 Oct 2026 22:10:27 -0400 Subject: [PATCH] test: cover all 22 registered API categories Add initialization checks for the 12 API categories that were not covered by the existing test. This closes the test coverage gap noted in #485 and ensures a missing category registration is caught by the unit tests. Verified the new coverage by temporarily removing the camera registration and confirming that the test fails as expected. This PR Fixes #497 --- changelog.d/497.fixed.md | 1 + tests/unit/test_dashboard_api_init.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 changelog.d/497.fixed.md diff --git a/changelog.d/497.fixed.md b/changelog.d/497.fixed.md new file mode 100644 index 00000000..7057821f --- /dev/null +++ b/changelog.d/497.fixed.md @@ -0,0 +1 @@ +Extended `test_all_api_sections_initialized` to cover all 22 registered categories (previously only 10), closing the test-coverage gap intentionally left open by #485. diff --git a/tests/unit/test_dashboard_api_init.py b/tests/unit/test_dashboard_api_init.py index bfb007f0..d6d7892f 100644 --- a/tests/unit/test_dashboard_api_init.py +++ b/tests/unit/test_dashboard_api_init.py @@ -115,6 +115,18 @@ def test_all_api_sections_initialized(self, mock_check): assert d.support is not None assert d.users is not None assert d.assistant is not None + assert d.administered is not None + assert d.batch is not None + assert d.camera is not None + assert d.campusGateway is not None + assert d.cellularGateway is not None + assert d.insight is not None + assert d.licensing is not None + assert d.sensor is not None + assert d.sm is not None + assert d.spaces is not None + assert d.switch is not None + assert d.wirelessController is not None class TestDashboardAPILogging: