Async Testing Expert
Master asynchronous Python testing using pytest with production-grade patterns for FastAPI and database interactions.
This skill provides comprehensive guidance for architecting and implementing robust asynchronous test suites for Python applications, particularly those built with FastAPI. It offers a library of production-ready patterns, including specialized pytest fixtures, sophisticated database mocking objects like FakeConnection and FakeRecord, and structured testing methodologies for DAO and service layers. Whether you are setting up a new test suite or refactoring complex async logic, this skill ensures your tests are reliable, readable, and properly isolated from external dependencies using industry-standard best practices.
主な機能
01Advanced database mocking with FakeConnection and transaction simulation
024 GitHub stars
03Structured organization patterns for DAO, Service, and Router layers
04Implementation of type hints and descriptive naming conventions in tests
05Production-ready pytest fixtures for FastAPI apps and async event loops
06Techniques for testing complex async batch operations and dependency injection
ユースケース
01Mocking asynchronous database drivers like asyncpg or psqlpy without a live DB
02Unit testing Data Access Objects (DAOs) with complex transaction logic
03Setting up a comprehensive test suite for a new FastAPI backend