Pytest Complete Guide|python Unit Testing With 50 Exercises
Posted: Mon Jul 27, 2026 10:55 am

Pytest Complete Guide|python Unit Testing With 50 Exercises
Published 7/2026
Created by M Sakai
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz, 2 Ch
Level: Beginner | Genre: eLearning | Language: English | Duration: 104 Lectures ( 9h 47m ) | Size: 2.3 GB
Master real-world Python testing through 50 hands-on labs: assert, parametrize, fixture, mock, coverage, FastAPI, TDD
What you'll learn
Requirements
Description
This course contains the use of artificial intelligence.
This is a hands-on pytest course that lifts your Python code from "it probably works" to "it works, and the tests prove it." It is designed so that people with zero testing experience can move forward one step at a time, starting from their very first `assert`.
The heart of this course is 50 hands-on exercises - you will not just watch. Every lesson follows the same rhythm: a walkthrough video, an exercise you solve yourself, and a review video covering the model answer. Repeating that loop 50 times, writing real code and turning tests green, is how knowledge turns into something your hands remember. Every exercise runs on CodeSandbox in your browser, so there is no painful environment setup. A PC and a browser are all you need to start today.
The content comes in two parts. Part 1 builds the core: how pytest collects tests automatically, the plain `assert` statement, comparing floats with approx, verifying exceptions with raises, data-driven testing with parametrize, sharing setup through fixtures and conftest, markers and skips, and measuring coverage. Part 2 covers what you meet at work: monkeypatch, the standard mock library and pytest-mock, verifying loggers and standard output, file I/O and SQLite, testing FastAPI APIs, async tests withhttpx, snapshot testing, and capstone exercises that keep TDD and CI in mind.
Go from "how am I even supposed to write a test?" to "I can put meaningful tests on my own code with confidence." Let's make testing your ally and become an engineer who writes code that does not break.
Who this course is for
Please Login or Register to see this code