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

Ss 1179 add a unit test for the profile changes #241

Merged
merged 33 commits into from
Oct 25, 2024

Conversation

anondo1969
Copy link
Contributor

@anondo1969 anondo1969 commented Oct 15, 2024

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.

  • This pull request is against develop branch (not applicable for hotfixes)
  • I have included a link to the issue on GitHub or JIRA (if any)
  • I have included migration files (if there are changes to the model classes)
  • I have included, reviewed and executed tests (unit and end2end) to complement my changes
  • I have updated the related documentation (if necessary)
  • I have added a reviewer for this pull request
  • I have added myself as an author for this pull request
  • In the case I have modified settings.py, then I have also updated the studio-settings-configmap.yaml file in serve-charts

akochari and others added 30 commits April 19, 2024 15:53
Co-authored-by: Viktor Sandström <v.sandstrom@icloud.com>
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>
@anondo1969 anondo1969 self-assigned this Oct 24, 2024
@anondo1969 anondo1969 requested a review from churnikov October 24, 2024 13:29
@anondo1969 anondo1969 marked this pull request as ready for review October 24, 2024 13:30
Copy link
Contributor

@churnikov churnikov left a 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.

@anondo1969
Copy link
Contributor Author

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>
@anondo1969 anondo1969 merged commit 1433a4f into develop Oct 25, 2024
2 of 3 checks passed
@anondo1969
Copy link
Contributor Author

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.

@anondo1969 anondo1969 deleted the SS-1179-Add-a-unit-test-for-the-profile-changes branch October 25, 2024 14:40
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.

4 participants