What if your Python tests required zero boilerplate and gave you more powerful error reports? Learn how pytest makes testing simple, rapid, and fun.
#1about 2 minutes
Understanding the core features and benefits of pytest
Pytest simplifies testing with automatic test discovery, useful failure reports, parameterization, and a powerful fixture system.
#2about 5 minutes
Writing simple tests with plain assert statements
Pytest eliminates boilerplate by using standard Python `assert` statements and provides detailed failure reports through assertion rewriting.
#3about 3 minutes
Using markers to conditionally skip and group tests
Use decorators like `@pytest.mark.skipif` to conditionally run tests and custom markers to tag and select specific test groups.
#4about 3 minutes
Creating data-driven tests with parameterization
The `@pytest.mark.parametrize` decorator allows running a single test function with multiple sets of input data, reducing code duplication.
#5about 7 minutes
Modularizing setup and teardown with fixtures
Fixtures use dependency injection to provide reusable setup and teardown logic for tests, allowing for modular and composable test resources.
#6about 3 minutes
Using built-in fixtures for common testing tasks
Pytest provides built-in fixtures like `tmppath` for creating temporary directories and `monkeypatch` for modifying state on a per-test basis.
#7about 7 minutes
Extending pytest functionality with popular plugins
Explore the pytest plugin ecosystem, including `pytest-cov` for coverage, `pytest-bdd` for behavior-driven development, and `hypothesis` for property-based testing.
#8about 14 minutes
Migrating to pytest and preparing for future releases
Learn how to migrate existing test suites to pytest and get a preview of upcoming features in the pytest 7.0 release, such as type annotations.
Related jobs
Jobs that call for the skills explored in this talk.
Dev Digest 216: CyberSec + Mythos, Stack Overflow for Agents & DOOM in TTFInside last week’s Dev Digest 216 .
🧠 Prompts are now tools in Chrome
📜 The AI Coding Agent Manifesto
🔐 How Claude Mythos changes Cyber Security
🧱 GitHub Stacked PRs to battle AI slop
⚙️ Git commands to run before reading code
🐍 A Python framework f...
Daniel Cranney
Dev Digest 205: AI vs. OSS, Hidden ChatGPT Features, Linux in a PDFInside last week’s Dev Digest 205 .
😔 The end of the curl bug bounty
📝 Agent Skills vs. Rules vs. Commands
💬 The best hidden ChatGPT features
📅 Weaponising calendar invites
🟪 CSS in 2026
🐍 Python numbers you should know
👨💻 The Github Copilot SDK
💻 ...
Dev Digest 197: Dunning–Kruger Steroids, State of Cloud Security, Puppies > BeerInside last week’s Dev Digest 197 .
💪 LLMs are steroids for Dunning-Kruger
☁️ The state of cloud security
🟨 JavaScript for Django developers
🔀 Redirects hurt your page rank
🤔 Is your node setup vulnerable?
💿 Meta data on audio CDs
🐶 OSS: More puppie...
From learning to earning
Jobs that call for the skills explored in this talk.