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

Cleanup filter tests, move to single file #866

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

vdboor
Copy link
Contributor

@vdboor vdboor commented Aug 1, 2024

It turned out there were multiple places were filtering tests happened.
The mandatory filter tests I wrote back then had a lot of code in a single test. This is now split into separate tests, and parametrized tests to make this easier to read and extend.

vdboor added 2 commits August 1, 2024 16:50
After reorganizing the view tests, it was apparent there were 2 places
testing for the view logic. This is a artifact from the time before
QueryFilterEngine was written (and DynamicFilterSet was a thing).

These tests all happen on the view level, and are grouped in a consistent readible whole.
This makes it easier to expand test conditions, and uncovered some
missing bits (resolved in earlier commits).
@vdboor vdboor force-pushed the diederik/cleanup-filter-tests branch from 3396bb6 to 05a9813 Compare August 1, 2024 14:54
Copy link
Contributor

@barrydaniels-nl barrydaniels-nl left a comment

Choose a reason for hiding this comment

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

OK

@vdboor vdboor merged commit 405db13 into master Aug 5, 2024
6 checks passed
@vdboor vdboor deleted the diederik/cleanup-filter-tests branch August 5, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants