概要
This skill provides expert guidance for writing robust asynchronous Python tests using the pytest framework, specifically tailored for modern web applications like FastAPI. It leverages proven production patterns to help developers set up essential fixtures, create sophisticated mock objects for database connections, and structure test suites across DAO, service, and API layers. Whether you are handling dependency injection, mocking complex transaction contexts, or writing high-performance batch operation tests, this skill ensures your test suite is maintainable, type-hinted, and follows industry best practices for async Python development.