What problem does it solve? Writing reliable Python tests requires choosing the right strategy for mocking, async code, fixtures, and coverage, and mistakes lead to flaky suites and untested edge cases. This Skill provides a structured workflow for designing, generating, and debugging pytest test suites. ## Core Features & Use Cases - Guided Test Generation: Follows a five-phase protocol covering context analysis, strategy selection, test case design, code generation, and verification. - Strategy Decision Tree: Selects between pure unit tests, boundary mocking with unittest.mock or monkeypatch, integration tests, and async tests with pytest-asyncio. - Flaky Test Guardrails: Enforces determinism with tmp_path, freezegun, factory-boy fixtures, and bans time.sleep synchronization. - Use Case: Ask the agent to add tests for a FastAPI endpoint, and it will analyze I/O boundaries, mock external calls, parametrize edge cases, and output runnable pytest code with coverage commands. ## Quick Start Ask the agent to write pytest unit tests with edge case coverage for a specific Python module in your project.