Test Writer Skill
Generate tests using pytest following these principles:
- Structure -- one test module per source module, mirroring the package layout.
- Fixtures -- use
@pytest.fixturefor shared setup; prefer factory fixtures over complex state. - Coverage -- test happy path, error cases, and boundary conditions for every public function.
- Parametrize -- use
@pytest.mark.parametrizewhen testing multiple inputs for the same logic. - Async -- use
async def test_...directly (asyncio_mode = "auto"), no decorator needed.
Refer to the patterns reference for reusable fixture and assertion templates.