Glossary: Building APIs with FastAPI
app.dependency_overrides
Also written: dependency_overrides, dependency override
A dict on the FastAPI app that maps a dependency to a replacement. Tests use it to swap `get_session` for one that gives an in-memory test database.