February 2022
Intermediate to advanced
274 pages
6h 28m
English
Let’s start our debugging by making sure the tests fail when we run them again. We’ll use --lf to re-run the failures only, and --tb=no to hide the traceback, because we’re not ready for it yet:
| | $ pytest --lf --tb=no |
| | ========================= test session starts ========================== |
| | collected 27 items / 25 deselected / 2 selected |
| | run-last-failure: re-run previous 2 failures (skipped 13 files) |
| | |
| | tests/api/test_list_done.py F [ 50%] |
| | tests/cli/test_done.py F [100%] |
| | |
| | ======================= short test summary info ======================== |
| | FAILED tests/api/test_list_done.py::test_list_done - TypeError: objec... |
| | FAILED tests/cli/test_done.py::test_done - AssertionError: assert '' ... |
| | =================== ... |
Read now
Unlock full access