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

Add missing CookieGroup.varname unique constraint #121

Merged
merged 4 commits into from
May 9, 2024

Conversation

sergei-maertens
Copy link
Collaborator

Closes #105

Added missing unique constraint to model field and cleaned up some code that is now possible to clean up.

Cookiegroups are now loaded using Django's built in in_bulk, using
the unique constrained-field.

The local imports are moved around between the models and cache
module, and the tests updated to not use unittest.mock for
behaviour checks, instead the desired outcome/effect is now
tested.

These mocks were broken due to the local imports being moved,
now the code can be refactored more freely without implementation
details being tested.
@sergei-maertens sergei-maertens merged commit b24a095 into master May 9, 2024
15 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.

Add a CookieGroup.varname unique constraint
1 participant