Python FastAPI Tutorial (Part 17): Testing the API - Pytest, Fixtures, and Mocking External Services
A comprehensive tutorial on testing a FastAPI application using pytest, async fixtures, and mocking external services. Covers setting up a separate PostgreSQL test database, implementing the transactional rollback pattern for test isolation, mocking AWS S3 with the Moto library, using FastAPI's dependency override system, and
•1h 22m watch time
Sort: