litestar-testing
Installation
SKILL.md
litestar-testing
Litestar-specific testing patterns built on pytest + anyio. Covers:
TestClientvsAsyncTestClient— when to use each@pytest.mark.anyiosetup- App + lifespan in tests
- Fixture patterns from canonical litestar-fullstack tests
- Mocking Guards and DI dependencies
- Integration with
pytest-databases(see../pytest-databases/SKILL.md) - Request body / form / multipart / header / cookie testing
- Litestar-specific assertion patterns (Response, headers, cookies)
For JS-side testing (Vitest, Testing Library, Playwright), use the upstream Vitest docs and Litestar's own JS examples. Out of scope here.