Python and FastAPI
Module 27 · Testing FastAPI applications
TestClient, fixtures for databases, dependency overrides, async tests, auth tests, coverage, linting and quality gates.
6 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 6
27.1 TestClient basics
-
Lesson 2 of 6
27.2 pytest fixtures for APIs and databases
-
Lesson 3 of 6
27.3 Dependency overrides and mocking
-
Lesson 4 of 6
27.4 Async tests with httpx.AsyncClient
-
Lesson 5 of 6
27.5 Testing authentication and permissions
-
Lesson 6 of 6
27.6 Coverage, linting, ruff, mypy and pre-commit