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

Ошибки в тестах #58

Closed
ni032mas opened this issue Jun 30, 2022 · 1 comment
Closed

Ошибки в тестах #58

ni032mas opened this issue Jun 30, 2022 · 1 comment

Comments

@ni032mas
Copy link

ni032mas commented Jun 30, 2022

Привет!

В тестах ниже кажется есть ошибки.

  1. Тут мы создаем таски, закрываем их, но не удаляем, а в конце проверяем что у пользователя нет тасок.

  1. Тут ошибка аффектит два теста, в одном ожидается ERROR, в другом REOPENED. Но если мы следуем правилу, что у нас все регистрозависимое, то у нас должна быть проверка на ACCESS_DENIED, так как первый параметр %S превращает user в строку в верхнем регистре, а создавались и закрывались таски без преобразований user.

return sendMessage(format("%S REOPEN_TASK %s", user, task));

@SimonHarmonicMinor
Copy link
Owner

SimonHarmonicMinor commented Jun 30, 2022 via email

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

No branches or pull requests

2 participants