February 2022
Intermediate to advanced
274 pages
6h 28m
English
The Cards CLI uses the Typer library[35] to handle all of the command-line parts, and then it passes the real logic off to the Cards API. In testing the Cards CLI, the idea is that we’d like to test the code within cli.py and cut off access to the rest of the system. To do that, we have to look at cli.py to see how it’s accessing the rest of Cards.
The cli.py module accesses the rest of the Cards system through an import of cards:
| | import cards |
Through this cards namespace, cli.py accesses:
Most ...
Read now
Unlock full access