Test Fails for Model Defined in Plugin #16431
Unanswered
ckmk14
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently migrating my plugin to NetBox v4.0.3. Upon integrating the plugin and running the default NetBox test cases, one single test consistently fails with the following message:
The failing test is extras.tests.tests_filtersets.TagTestCase in test_missing_filters.
For illustration purposes, I simply added a ModelClass called Dummy:
While debugging, I noticed that the core models defined in NetBox don't reach the point of the assertion in the following code snippet from netbox.utilities.testing.filtersets.py. This is because they are included in the ignore_fields attribute of the TagTestCase.
Shouldn't the models from plugins also be included in the ignore_fields attribute of the TagTestCase?
Do you have any insights or suggestions? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions