In this tutorial, you will learn the basics of Pytest, one of the most popular unit testing frameworks for Python. Pytest is a simple and efficient tool for writing, organizing and running tests for your Python projects. With Pytest, you can write tests for functions, methods, and classes in a clean and organized manner.
In this 60-minute video, you will cover the following topics:
Introduction to Pytest
Installing Pytest
Writing your first Pytest test case
Pytest fixtures
Parametrizing tests
Understanding test discovery in Pytest
Running specific tests in Pytest
Asserting exceptions in Pytest
Writing tests for class-based applications
Pytest plugins and advanced features
Debugging tests with Pytest
Conclusion and next steps
By the end of this tutorial, you will have a good understanding of how to write, organize and run tests with Pytest. Whether you are new to unit testing or already have experience with other testing frameworks, this video will provide you with the knowledge you need to get started with Pytest. So, join now and take your Python testing skills to the next level!