What problem does it solve? Testing Litestar applications requires framework-specific patterns that generic pytest knowledge does not cover: anyio instead of pytest-asyncio, lifespan-aware test clients, DI overrides for mocking, and Guard bypass strategies. This Skill provides the correct patterns so tests actually exercise the real application lifecycle. ## Core Features & Use Cases - TestClient vs AsyncTestClient guidance: Choose the right client and always trigger lifespan via async with so plugins like Vite, SAQ, and SQLAlchemy initialize. - Mocking patterns: Override DI dependencies and Guards cleanly instead of patching internals, keeping tests isolated from import order. - Database integration: Combine pytest-databases container fixtures with app fixtures for real Postgres-backed integration tests. - Use Case: You need to test an account creation endpoint that writes to Postgres, enqueues a welcome email via SAQ, and sits behind an auth Guard. This Skill shows the conftest.py fixtures, DI overrides, and parametrized test structure to cover happy paths and validation errors. ## Quick Start Ask the AI to write an async Litestar test for a specific endpoint using AsyncTestClient with anyio, including fixtures for the app, database, and mocked external services.