This skill provides comprehensive testing standards and best practices for Python projects using pytest. It serves as a reference guide during code reviews to ensure test quality, maintainability, and adherence to Python testing conventions.
High-quality tests are essential for maintaining reliable Python applications. This skill documents industry-standard testing practices using pytest, the de facto testing framework for modern Python development. These standards emphasize:
This skill is designed to be referenced by the uncle-duke-python agent during code reviews and by developers when writing tests.
Комплексные лучшие практики тестирования Python, соглашения pytest, шаблоны тестовых структур (AAA, «Дано-Когда-То»), использование приспособлений, стратегии макетирования, стандарты покрытия кода и распространенные антишаблоны. Важный справочник по проверке кода, написанию тестов и обеспечению высококачественных наборов тестов Python с помощью pytest, unittest.mock и pytest-cov. Источник: clostaunau/holiday-card.