Toppertube › Programming & Tech

Python FastAPI Tutorial (Part 17): Testing the API - Pytest, Fixtures, and Mocking External Services

Corey Schafer · Programming & Tech · 1 h 22 min · 14 thousand views · published 2026-04-17

Python FastAPI Tutorial (Part 17): Testing the API - Pytest, Fixtures, and Mocking External Services

In this Python FastAPI tutorial, we will learn how to test our FastAPI application using Pytest, HTTPX's AsyncClient, and mocking tools like fastapi fastapi tutorial python fastapi fastapi testing pytest pytest fixtures

Watch this lesson free on Toppertube, take notes beside the video, and add it to a course to track your progress and earn a certificate.

More from Corey Schafer

More in Programming & Tech