-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix test_tags_filter() test #786
Conversation
@@ -300,9 +300,17 @@ class Meta: | |||
class ConfigPlanFilterSet(NautobotFilterSet): | |||
"""Inherits Base Class NautobotFilterSet.""" | |||
|
|||
q = django_filters.CharFilter( | |||
method="search", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method search
was undefined? Odd that this didn't raise an exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it just got overridden by the redundant q filter down below. That is why it did not raise an exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
changes/786.fixed
Outdated
@@ -0,0 +1 @@ | |||
Fixed incorrect test data setup for `test_tags_filter()` test for `ConfigPlanFilterTestCase`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this should be housekeeping
No description provided.