Active Threads This:
Most Active This Week
Most Active This Month
Most Active This Year
![samuelwhiskeyjohnson](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
In Chapter 6 Markers pg 78, it says
Should your passing xfail tests result in XFAIL? If yes, leave strict alone. If you wan...
New
Most Active Last Three Years
![navneethc](https://forum.devtalk.com/user_avatar/forum.devtalk.com/navneethc/120/3864_2.png)
This is from the PDF of the latest beta release as on 10th Feb, 2022.
Page 13, section titled Writing Knowledge-Building Tests, second p...
New
![Meliowant](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Meliowant/120/4236_2.png)
Brian Okken @brianokken,
The following flags require an extra dash as for pytest 7.1.2:
--lf - for last failed;
--ff - for first fai...
New
![sentient6](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sentient6/120/4065_2.png)
p. 40, 2nd paragraph, final sentence: “–fixturues” will look nicer without the second ‘u’.
Great book, by the way.
New
![PocsGeza](https://forum.devtalk.com/user_avatar/forum.devtalk.com/PocsGeza/120/4447_2.png)
@brianokken
After installing the cards project card creation appears to be working but when I try to run the “card” command I get the f...
New
![GreatBahram](https://forum.devtalk.com/user_avatar/forum.devtalk.com/GreatBahram/120/4214_2.png)
@brianokken
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the ...
New
![Meliowant](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Meliowant/120/4236_2.png)
There is the following example, on the page 28:
$ pytest -v --tb=no -k “(dict or ids) and not TestEquality”
==========================...
New
![Meliowant](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Meliowant/120/4236_2.png)
@brianokken
pytest’s output on page 231 contains 4 items for test_everyone case (admin, author, editor, visitor), while fixture’s params...
New
![Joerki](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the thread):
Tit...
New
![jeremytsang](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jeremytsang/120/4758_2.png)
@brianokken
If I’m not mistaken, the sentence on page 68 “We’ve just changed the way pytest fills in the value for initial_state every t...
New
![pingwax](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
Then we can use both empty_db and some_cards in a test:
should be:
Then we can use both non_empty_db and some_cards in a...
New
![jygh](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
Python Testing with pytest, Second Edition: typo “one tox environment” (179)
The following sentence appears to have a typo (...
New
![jygh](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
In Chapter 14, exercise 3, there’s the following instruction:
Re-run the tests with --n=auto.
Using my installed version o...
New
![jygh](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
The exercises in Chapter 15 refer to the following two directories:
pytest-skip-slow
slow-full
In the downloaded source th...
New
![jygh](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
Exercise 1 in Chapter 14 contains the instructions:
Head over to pypy.python.org with your favorite browser.
Unfortunately...
New
Most Active Over Three Years
![leonW](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
I ran this command after installing the sample application:
$ cards add do something --owner Brian
And got a file not found error:
Fil...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
When I run the coverage example to report on missing lines, I get:
pytest --cov=cards --report=term-missing ch7
ERROR: usage: pytest [op...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
When installing Cards as an editable package, I get the following error:
ERROR: File “setup.py” not found. Directory cannot be installe...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
When running tox for the first time, I got the following error:
ERROR: InterpreterNotFound: python3.10
I realised that I was running ...
New
![brian-m-ops](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brian-m-ops/120/2996_2.png)
#book-python-testing-with-pytest-second-edition
Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
When trying to run tox in parallel as explained on page 151, I got the following error:
tox: error: argument -p/–parallel: expected one...
New
![leonW](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Brian, I don’t think this file got updated properly when you uploaded the new version. The README.md file is still missing, and the fix ...
New
![foxhunt72](https://forum.devtalk.com/user_avatar/forum.devtalk.com/foxhunt72/120/3441_2.png)
Title: Python Testing with pytest, Second Edition page 120
$ cd /path/to/code
$ pytest --cov=cards ch7
Doesn’t seem to work, ch7 folde...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
What’s next paragraph:
We’ve used them parametrize tests with a single parameter and simple values, like strings.
Should the word the...
New
![evanhorn](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@brianokken
Brian, the top level README.md file refers to “tasks_proj” instead of “cards_proj”.
Based on this I grepped for “tasks” and...
New
![leonW](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
The way I have this formatted it is page 80. But when discussing the content of ch3/b/conftest.py you say:
“the cards_db fixture has ca...
New
![rhasti](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rhasti/120/3002_2.png)
Testing with Typer
A great feature of Typer is that it proves a testing interface
I am not a native english speaker but assume that pr...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
In the “what changed list”, 3rd bullet point says:
The section [project.entry-points.“pytest-11”] is added […]
However, the code exam...
New
![arounkles](https://forum.devtalk.com/user_avatar/forum.devtalk.com/arounkles/120/3617_2.png)
The sentence beginning “There is also an errata page set up at both pytestbook.com and at pragprog.com” crosses the end of page at just t...
New
![brunogirin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brunogirin/120/3590_2.png)
The shell commands at the top of the page use test_code.py rather than ch7. They should be:
$ pytest --cov=cards --cov-report=html ch7
...
New
Book Info
Publisher:
Pragmatic Bookshelf
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!
![](/assets/discounts/logo-pragprog-e2f9c555cf054b1bd6bf9875d757a13d9eb4abb8313ffa439feabaf3ed463947.png)
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.