Python Testing with pytest, Second Edition:

Title: Python Testing with pytest, Second Edition page 120

$ cd /path/to/code
$ pytest --cov=cards ch7
Doesn’t seem to work, ch7 folder is empty and pytest gives a error:

collected 0 items
Coverage.py warning: Module cards was never imported. (module-not-imported)
Coverage.py warning: No data was collected. (no-data-collected)

With regards

RIchard

Richard, Sorry about that. We’ll be sure to include ch7 in the next Beta update. thanks for letting us know.

I’ve just pushed the code for ch7, so that should be in the next beta