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.
Migliori pratiche complete di test Python, convenzioni pytest, modelli di struttura di test (AAA, Given-When-Then), utilizzo dei dispositivi, strategie di mocking, standard di copertura del codice e anti-pattern comuni. Riferimento essenziale per le revisioni del codice, la scrittura di test e la garanzia di suite di test Python di alta qualità con pytest, unittest.mock e pytest-cov. Fonte: clostaunau/holiday-card.