Update FilterSetClassesTestCase to utilize filterset register #11872

Open
opened 2025-12-29 21:51:04 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 25, 2025).

Proposed Changes

Update the get_filterset_for_model() method under FilterSetClassesTestCase to return the filterset registered for a given model, rather than relying on obtuse name-based resolution.

Filterset registration was introduced as part of #7604 and will ship in NetBox v4.5.0.

Justification

This approach ensures more reliable filter registration, and will uncover unregistered filtersets.

Originally created by @jeremystretch on GitHub (Nov 25, 2025). ### Proposed Changes Update the `get_filterset_for_model()` method under FilterSetClassesTestCase to return the filterset registered for a given model, rather than relying on obtuse name-based resolution. Filterset registration was introduced as part of #7604 and will ship in NetBox v4.5.0. ### Justification This approach ensures more reliable filter registration, and will uncover unregistered filtersets.
adam added the type: housekeepingnetboxstatus: backlog labels 2025-12-29 21:51:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11872