-
Notifications
You must be signed in to change notification settings - Fork 202
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 test for cuesubmit - Validators.py #588
Add test for cuesubmit - Validators.py #588
Conversation
Updated comment for one function in Validators.py
|
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.
LGTM. @bcipriano do you agree with the comment on whitespaces?
@@ -28,7 +28,7 @@ def matchLettersAndNumbersOnly(value): | |||
|
|||
|
|||
def matchNoSpecialCharactersOnly(value): | |||
"""Match strings containing letters, numbers, '.', '-', and '_'""" | |||
"""Match strings containing letters, numbers, '.', '-','_', \t and \n""" |
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 great example of why tests are great. We probably don't want tabs and newlines in this regex, at least not for where it is currently used. I'll create a separate ticket for cleaning up the regex to remove the general whitespace character and be more explicit about single whitespaces.
@kalisp Thanks for the contribution! It's great to be increasing the test coverage. |
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.
Yep, agreed.
Thanks @kalisp!
Link the Issue(s) this Pull Request is related to.
#396
Summarize your change.
Added first tests for Validators
Updated comment for one function in Validators.py based on test result
Validators.py didn't have any test coverage yet