-
Notifications
You must be signed in to change notification settings - Fork 7
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 tests for commands.go file #54
Labels
help wanted
Extra attention is needed
Comments
anatoliyfedorenko
added a commit
that referenced
this issue
Jul 18, 2019
Only ChangeUserTimeZone ChangeGroupTimeZone ChangeAdvisesStatus functions are left to test |
sula7
pushed a commit
that referenced
this issue
Jul 18, 2019
sula7
referenced
this issue
Jul 19, 2019
1. Mistake was in Length of MessageEntity, I used 8 instad of 9, missing whitespace in file commands_test.go 2. According to PR, removed TrimSpace() in commands.go Now, tests pass
anatoliyfedorenko
added a commit
that referenced
this issue
Jul 19, 2019
Add test in commands_test.go #54
Test cases if no standuper and incorrect timezone entered of |
sula7
pushed a commit
that referenced
this issue
Jul 19, 2019
Test creates a standuper changes his timezone from group's default to user's custom. Also in ChangeUserTimeZone of commands.go if no MessageEntity text timezone changes to default (Asia/Bishkek)
sula7
referenced
this issue
Jul 19, 2019
Test for ChangeGroupTimeZone() in case of incorrect timezone entered. Test for ChangeUserTimeZone() in case of user is not a standuper and incorrect timezone entered
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all the functions in commands.go file are not tested, need to add tests for each of them and cover all test cases
The text was updated successfully, but these errors were encountered: