-
Notifications
You must be signed in to change notification settings - Fork 10
WIP: fix(backend-test): the validation should not return None #669
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
base: main
Are you sure you want to change the base?
Conversation
@@ -184,7 +184,7 @@ def validate(self, data): | |||
.exists() | |||
): | |||
return data | |||
msg = "You don't have the permission to update this task" | |||
msg = "You don't have the permission to update this task" # pragma: no cover |
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'd rather see a test for this instead
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.
@winged i did not see tests in the beginning, that's why i did not wrote it, but for sure i can add,
and an important note: i see in the changes tab that the changes are only one file, but if you check f0785a2 commit, you will see that there are some snapshot updated, i would like to confirm this too please
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.
It's a change in behaviour, so I think there should be a test for it.
Regarding that commit, I think it's coming from the main
branch as you merged main into this feature branch, so that's normal. Maybe try rebasing, then the diff should be less confusing
Just a couple questions:
:) |
No description provided.