/books/python-testing-with-pytest
Brian Okken @brianokken
Edited by Katharine Dvorak @katied
Do less work when testing your Python code, but be just as expressive, elegant, and readable. The pytest testing framework helps you write tests quickly and keep them readable and maintainable—with no boilerplate code. Using a robust fixture model, write small tests or scale up to testing for applications, packages, and libraries.
Get up to speed quickly on this powerful tool with step-by-step instructions and sample code. Add testing features and speed up test times by distributing tests across multiple processors. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, unittest, and doctest.
Write simple, maintainable tests that elegantly express what you’re testing and why.
“This book is the missing chapter absent from every comprehensive Python book.”
– Frank Ruiz, principal site reliability engineer, Box, Inc.
Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout
Latest Threads About This Book
Most Active This Week
Most Active This Month
Most Active This Year
Most Active Last Three Years
Most Active Over Three Years
Book Info
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.