Skip to content
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

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Conversation

HanlinMiao
Copy link
Contributor

No description provided.

@@ -300,9 +300,17 @@ class Meta:
class ConfigPlanFilterSet(NautobotFilterSet):
"""Inherits Base Class NautobotFilterSet."""

q = django_filters.CharFilter(
method="search",
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@@ -0,0 +1 @@
Fixed incorrect test data setup for `test_tags_filter()` test for `ConfigPlanFilterTestCase`.
Copy link
Contributor

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

@HanlinMiao HanlinMiao merged commit 4991993 into develop Aug 7, 2024
16 checks passed
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.

3 participants