-
Notifications
You must be signed in to change notification settings - Fork 9
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
Mvj 234 more tests for gdpr api #775
Conversation
favourite does not seem like a model that needs to be kept around after user deletion
90dc304
to
c8f00db
Compare
gdpr/tests/test_gdpr_views.py
Outdated
"API_AUTHORIZATION_FIELD": "authorization.permissions.scopes", | ||
} | ||
|
||
user = user_factory(first_name="Jari", last_name="Kuningas") |
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.
This is a real person. I would use something like "UserFirstName" and "UserLastName"
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.
... unless it's required for the Suomi.fi authentication
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.
Not required, fair point, although it is not a real name
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 mean, that person exists in the real world, I googled it :) But not in our system.
e6a764f
to
a7b5373
Compare
Adds tests for utils, which test actual deletion behavior.
Adds tests for views, which are partly done to document the behavior rather than actually testing - since the original package tests those already.
Adds migration to delete Favourite objects that are related to the user that is being deleted. Favourite is like the shopping cart of this app, so it doesnt need to be persisted.