Get 20% off all career paths from fullstack to AI
Start speaking a new language. It’s just 3 weeks away.
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Learn how to effectively test Python code using pytest in this comprehensive 3-hour tutorial from PyCon US. Discover the power of pytest, Python's most popular testing framework, and gain hands-on experience writing and running tests. Explore essential topics such as project configuration for testing, pytest's basic mechanics, test parameterization, setup and cleanup with fixtures, and basic mocking techniques. Dive into practical applications by testing web APIs and UIs using Playwright. Through hands-on coding exercises, master the art of writing robust tests and become proficient in using pytest to ensure the quality and reliability of your Python projects. By the end of this tutorial, you'll have the skills and confidence to test your Python code like a champion.
Syllabus
Tutorials - Pandy Knight: def test_crash_course_with_pytest():
Taught by
PyCon US