Skip to content

pytest Course · Guide ​

This course is built on the pytest 9.x official documentation, spanning 20 chapters from zero basics all the way to production practice.

What You Will Learn ​

StageChaptersContent
Getting started01–05Testing basics, assertions, organization & markers, parametrization
Intermediate06–11The full fixture toolbox, built-in fixtures, mocking, configuration files
Advanced12–18Plugin development, coverage, parallel execution, async testing, Hypothesis
Production19–20Web-service integration testing, CI and test governance

Official References ​

This course is written strictly against the following authoritative sources:

SourceLink
docs.pytest.orghttps://docs.pytest.org/en/stable/
github.comhttps://github.com/pytest-dev/pytest/tree/main/doc/en

Version baseline: pytest 9.x

Prerequisites ​

  • Basic Python syntax (functions, classes, module imports);
  • Python 3.10+ installed locally.

How to Study ​

  1. Read each chapter's explanations and type out the example code yourself;
  2. Take the quiz (wrong answers reveal the correct choice and why);
  3. Finish the 3 hands-on exercises before moving to the next chapter.

👉 Start from Chapter 1.