
Python Testing with Pytest
Brian Okken · 2022
Programming and computer science › Python
#10,970 most recommended
Hacker News
3
mentions by 3 people · top 64% of 15,732 books
Open Library
—
No ratings yet
3 want to read
Wikipedia
—
No article yet
About the book
A practical guide to testing Python code with the pytest framework. It covers writing and running a first test, then organizing tests with fixtures, parametrization, and markers, using pytest's built-in fixtures, and working with plugins. It also touches on running pytest in larger projects and with related tools such as coverage and tox. The book makes the case that tests should be short, readable, and mostly free of boilerplate, and that pytest's plain assert statements and automatic failure reporting make this possible. It presents fixtures as a more flexible way to manage setup, teardown, and shared dependencies than class-based setup methods, and it claims that parametrization lets one test cover many inputs without duplication. It also argues that pytest's plugin ecosystem extends the framework without requiring changes to the tests themselves.
Written by Claude from what it knows of this book.
What Hacker News says 33% recommend · 0% critical
In the commenters’ own words
Test Driven Web Development with Python teaches you Django while also teaching you TDD. As long as you're comfortable with Python it should pose no problem…
I am trying to choose a book to read to learn testing my _Flask_ web application. Should I go with "Python Testing with Pytest" by Brian Okken or the book…
What Open Library readers say
No Open Library reader has rated it yet.
- 3 want to read
- 0 reading
- 0 have read
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
Details
- First published
- 2022
- ISBN
- 9781680508604
- Editions known
- 2 at Open Library
- Open Library
- OL27411432W
Read next: its neighbours on the mosaic
Test-Driven Development with PythonHarry J.W. Percival · 2014 · recommended by 16 people · similar by subject and what people say about it
Python web development with DjangoJeff Forcier · 2009 · recommended by 1 person · similar by subject and what people say about it
Test-driven developmentKent Beck · 2002 · recommended by 30 people · similar by subject and what people say about it
The Hitchhiker’s Guide To PythonKenneth Reitz · 2016 · recommended by 26 people · similar by subject and what people say about it
Effective PythonBrett Slatkin · 2015 · recommended by 22 people · similar by subject and what people say about it
The definitive guide to DjangoAdrian Holovaty · 2007 · recommended by 3 people · similar by subject and what people say about it
Practical Django ProjectsJames Bennett · 2008 · recommended by 6 people · similar by subject and what people say about it
Architecture Patterns with PythonHarry J.W. Percival · 2020 · recommended by 12 people · similar by subject and what people say about it
Python in a NutshellAlex Martelli · 2002 · recommended by 9 people · similar by subject and what people say about it
Fluent PythonLuciano Ramalho · 2015 · recommended by 67 people · similar by subject and what people say about it
Dive into PythonMark Pilgrim · 2004 · recommended by 94 people · similar by subject and what people say about it
Python CookbookAlex Martelli · 2002 · recommended by 17 people · similar by subject and what people say about it
Pro DjangoMarty Alchin · 2009 · recommended by 1 person · similar by subject and what people say about it
Flask Web DevelopmentMiguel Grinberg · 2014 · recommended by 2 people · similar by subject and what people say about it
Python DistilledDavid M. Beazley · 2021 · recommended by 9 people · loosely similar by subject
Programming PythonMark Lutz · 1996 · recommended by 4 people · loosely similar by subject
Growing object-oriented software, guided by testsSteve Freeman · 2010 · recommended by 43 people · loosely similar by subject
Learning PythonMark Lutz · 1999 · recommended by 26 people · loosely similar by subject
Python 3 object oriented programmingDusty Phillips · 2010 · recommended by 3 people · loosely similar by subject
Python essential referenceDavid M. Beazley · 2000 · recommended by 14 people · loosely similar by subject
The RSpec BookDavid Chelimsky · 2010 · recommended by 8 people · loosely similar by subject
Beginning PythonJames R. Payne · 2010 · recommended by 2 people · loosely similar by subject
Python in Easy StepsMike McGrath · 2013 · recommended by 0 people · loosely similar by subject
Test-driven JavaScript developmentChristian Johansen · 2011 · recommended by 4 people · loosely similar by subject