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

Для инфо: Беглый взгляд на тесты #26

Closed
drowsycoder opened this issue Oct 31, 2022 · 0 comments
Closed

Для инфо: Беглый взгляд на тесты #26

drowsycoder opened this issue Oct 31, 2022 · 0 comments

Comments

@drowsycoder
Copy link
Collaborator

https://github.com/Prrromanssss/LyceumYandex_django/blob/eb95a342ee46a609a494beab07b7b5e65d1a3dbf/lyceum/catalog/tests.py#L19
Почти оптимально. Кому-то не понравится, как списки хранятся или ещё что, но в целом очень гуд.
В зависимости от соотношения оптимизация/информативность можно остановиться на этом или объединить этот абзац с последующим, добавив перед этим один for и скорректировав то, что передается в скобках .subTest()
Но меня и так устраивает :)

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