Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.