February 2022
Intermediate to advanced
274 pages
6h 28m
English
We’ll use the Cards project in the rest of the book, so it’s important you are able to install it and run tests against it.
If you haven’t already, download the code from the book’s web page[14] and make sure you can install the Cards application locally with pip install /path/to/code/cards_proj.
Navigate to the path/to/code/ch2 directory. Run pytest test_card.py.
You should see something like this:
| | $ pytest test_card.py |
| | ========================= test session starts ========================== |
| | collected 7 items |
| | |
| | test_card.py ....... [100%] |
| | |
| | ========================== 7 passed in 0.07s =========================== |
If you are not able to run pytest, or don’t get seven passing tests, something’s wrong. Please try to resolve ...
Read now
Unlock full access