pytest lets you write simple tests fast—but also scales to very complex scenarios. This comprehensive full-day masterclass goes far beyond the basics of no-boilerplate test functions, diving deep into intermediate and advanced features, hidden gems, and practical tricks that will transform how you write and maintain your test suites.
This masterclass is designed for developers who are already familiar with pytest basics (e.g., writing test functions, using parametrize,
understanding what a fixture is) and want to take the next step toward more powerful, maintainable test suites.
Even if you're already comfortable with fixture caching scopes, autouse, or built-in fixtures like tmp_path and monkeypatch, you'll
discover plenty of lesser-known tricks and gems throughout the day.
xfail, marking entire files, and marking individual parametersautouse, and advanced patternsThe masterclass format allows time for hands-on exercises, real-world examples, Q\&A, and exploring the nuances that make the difference between tests that merely pass and test suites that truly serve your project.
Freya Bruhin ("The Compiler") is a long-time contributor and maintainer of both the pytest framework and various plugins. Since discovering pytest in 2015, she has shared her expertise through talks and workshops at numerous conferences and companies. Freya is also the creator of qutebrowser, a keyboard-focused web browser that has grown from a hobby project into a donation-funded part-time endeavor—and serves as the real-world testing ground for her pytest experience.