-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ss 1179 add a unit test for the profile changes #241
Ss 1179 add a unit test for the profile changes #241
Conversation
Co-authored-by: Viktor Sandström <v.sandstrom@icloud.com>
This reverts commit d321a3f.
removed comments Co-authored-by: Nikita Churikov <8545082+churnikov@users.noreply.github.com>
fixed the gap after hash sign Co-authored-by: Nikita Churikov <8545082+churnikov@users.noreply.github.com>
changed the comment text Co-authored-by: Nikita Churikov <8545082+churnikov@users.noreply.github.com>
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.
Squash this testy boy!
Looks good to me once you remove one line from the suggestions.
Thank you so much. |
removed the login_required decorator. Co-authored-by: Nikita Churikov <8545082+churnikov@users.noreply.github.com>
Added three unit tests for the validations of profile change values namely first_name, last_name, and department. First two tests (pass and fail) are for the user_edit_form (first_name and last name). The last one (pass) is for the profile_edit_form (department). It seems 'department' field is valid for any type of key inputs; hence only pass_validation test is written. |
Description
Source: https://scilifelab.atlassian.net/browse/SS-1179
Added three unit tests for the validations of profile change values namely first_name, last_name, and department. First two tests (pass and fail) are for the user_edit_form (first_name and last name). The last one (pass) is for the profile_edit_form (department). It seems 'department' field is valid for any type of key inputs; hence only pass_validation test is written.
Types of changes
Unit test
Checklist
If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.