Here’s the announcement that came out this morning from TalkPython Training:
GETTING STARTED WITH PYTEST
It’s time to test your code the right way
We have another brand new course over at Talk Python and this one has been in the works for awhile. We just launched Getting started with pytest by Brian Okken.
This course has over 3 1/2 hours of content and is perfect for those of you who are new to pytest as well as those of you who have been testing with pytest for years but might not have fully leveraged its unique capabilities and features.
You might be thinking, another “red-green-refactor TDD course” but that’s not what this one is. Yes, you will learn about testing Python code and how to do so with pytest. But the focus of this course is pytest itself.
pytest is the most popular Python testing framework, used 2x as often as the built-in unittest library as well as any other external package. With this course you’ll learn the pytest way. How you can customize its reporting, the way tests execute, how to scale them across CPU cores, the unique fixture model to a very clean setup and teardown story.
Course Topics
Topics covered in the course include
Build clean, readable, well structured test functions.
Utilize fixtures to hold setup, teardown, and test data.
Share fixtures between tests and between test files.
Trace test execution through tests and fixtures to help debug tests.
Use test parametrization to create reams of test cases with a small number of test functions.
Identify test parameterizations cleanly with test ids.
Learn to skip tests with markers.
Run subsets of tests using keywords, markers, test classes, and combinations of these techniques.
Expand pytest functionality with pytest plugins.
And lots more
You may know Brian from…
If you listen to the Python Bytes podcast, you’ll know that Brian is the cohost along with Michael Kennedy.
Brian also wrote the well-received book Python Testing with pytest, Second Edition. And if you happen to have his book, this course is a great companion but it also stands alone as a great introduction.