Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learn FastAPI quickly
·
Module 10
Testing FastAPI Applications
1
Testing FastAPI with pytest and TestClient
Set up a testing environment with pytest and FastAPI's TestClient
2
Testing API Endpoints: Status Codes and Response Content
Write unit tests for endpoints, asserting status codes and response content
3
Mocking External Dependencies for Testing
Override dependencies during testing to mock external services like databases
4
Testing Protected Endpoints with Mock Authentication
Write tests for protected endpoints by providing mock authentication credentials
5
Testing File Upload Endpoints
Test endpoints that handle file uploads
Previous module
Advanced I/O: Files and Background Tasks
Next module
Containerizing with Docker