Python and FastAPI
Module 14 · Testing with pytest
Why and how to test: TDD, pytest basics, fixtures, parametrisation, mocking, edge cases, coverage and continuous testing.
7 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 7
14.1 Testing fundamentals and test-driven development
-
Lesson 2 of 7
14.2 Writing your first tests
-
Lesson 3 of 7
14.3 Fixtures and parametrize
-
Lesson 4 of 7
14.4 Testing exceptions and edge cases
-
Lesson 5 of 7
14.5 Mocking external calls and coverage
-
Lesson 6 of 7
14.6 Test design, organisation and CI
-
Lesson 7 of 7
14.7 A continuous testing workflow