Skip to content

test: verify all 22 API categories are initialized - #498

Open
priyavrat7 wants to merge 1 commit into
meraki:betafrom
priyavrat7:fix-12-missing-category-registrations
Open

priyavrat7 wants to merge 1 commit into
meraki:betafrom
priyavrat7:fix-12-missing-category-registrations

Conversation

@priyavrat7

Copy link
Copy Markdown

Description

This PR adds initialization checks for all 22 API categories registered by DashboardAPI.

The existing test_all_api_sections_initialized test only checked 10 categories. The remaining 12 categories were missing from the initialization assertions.

This adds the missing assertions so that a category that is accidentally removed or not initialized in DashboardAPI will be caught by the unit tests.

Testing

  • Ran the full unit test suite with:
    uv run pytest tests/unit -q
  • Temporarily removed the camera registration from DashboardAPI and confirmed that the new assertion failed as expected.
  • Restored the registration and confirmed the test suite passes.
  • Added changelog.d/497.fixed.md as required by CONTRIBUTING.md.

Base branch

Opened against beta, matching PR #485.

Related issue

This PR Fixes #497

Add initialization checks for the 12 API categories that were not
covered by the existing test. This closes the test coverage gap noted
in meraki#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 meraki#497
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant