nautobot
nautobot copied to clipboard
Migrate filter tests to generic tests
Proposed Changes
New generic tests were added to the base filter test case (test_filters_generic
and test_boolean_filters_generic
). Most has_*
filter tests should already be covered by test_boolean_filters_generic
and can be safely removed. Most other basic filter tests can be replaced by test_filters_generic
but will need to be individually checked for compatibility with the generic test and added to the generic_filter_tests
list on the test case.
Justification
Code clean up and reusing test code
Test case changes on https://github.com/nautobot/nautobot/pull/3342 can now be moved into generic_filter_tests
since they are all now all multi-value filters
#5378 addresses the boolean filter tests only. More to be done.