New Tests from telegram team#2
Open
Iwillfinduo wants to merge 18 commits into
Open
Conversation
antonchuvashow
requested changes
Mar 31, 2024
antonchuvashow
left a comment
Contributor
There was a problem hiding this comment.
Если придумаете что-то еще, то отлично, если нет, то переходим к другим блокам сервиса и пишем тесты.
Не забываем, что тесты должны быть следующих видов:
- Проверка отдельных модулей или функций на корректность их работы.
- Проверка взаимодействия между различными модулями или компонентами.
- Проверка функциональности с точки зрения конечного пользователя.
- Проверка производительности при высоких нагрузках.
- Проверка на наличие уязвимостей.
- Проверка способности восстанавливаться после сбоев или ошибок (тесты на дурака).
- Проверка поведения при экстремальных или крайних значениях входных данных.
Хорошо так же использовать случайные тесты, например с помощью библиотеки Faker.
antonchuvashow
requested changes
Apr 3, 2024
antonchuvashow
left a comment
Contributor
There was a problem hiding this comment.
Разбейте class TestTelegramSendingMessage на классы по префиксам ваших функций (catching_response и т.д.), чтобы убрать эти длинные названия; но названия сами хорошие.
Я прогнал тесты с покрытием, сейчас они покрывают треть файлов telegram_connector'а, и на 100% файл telegram_message.py – это хорошо.
| question = TestQuestion(text='Sample Question', | ||
| id=3, | ||
| subject='Sample Subject', | ||
| options='["1", "2", "3", "4"]', |
Contributor
There was a problem hiding this comment.
Тут список должен быть ["1", "2", "3", "4"] без кавычек
…d pain commented T_T)" because of my wrong update for local branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.