- tests/unit/ — isolated logic, mocked dependencies
- tests/integration/ — API endpoints, database, external services
- Every new feature needs tests
- Use pytest fixtures, not setUp/tearDown
- Mock external services (LLM, databases) in unit tests
- Integration tests use Docker services
- All tests:
uv run pytest tests/ -v - Unit only:
uv run pytest tests/unit/ -v - With coverage:
uv run pytest --cov=src tests/