How This Book Is Organized
The book is organized into three parts. In Part 1, Primary Power, you’ll install pytest and start to explore its primary features using the Cards project along the way. You’ll learn how to run simple test functions on the command line. You’ll then use pytest fixtures to push setup and teardown code out of the test functions. You’ll learn how to use many of pytest’s builtin fixtures to help with common testing problems like temporary directories. You’ll also learn how to turn one test into many test cases with parametrization. And finally, you’ll learn how to use markers to run a subset of tests.
In Part 2, Working with Projects, you’ll look at some real-world issues around testing projects, as well as explore more ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access