fastapi-testing
Installation
SKILL.md
FastAPI Testing Setup
Overview
This skill covers setting up pytest-asyncio for integration testing FastAPI routers with a test database.
Test Configuration in pyproject.toml
Ensure pyproject.toml has:
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
pythonpath = ["src"]