Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PyTest Selective running of test functions

During development you will probably want to focus on a specific test (or a specific group of tests). You can run a specific test by providing its name:

pytest test_failures.py::test_one

pytest test_failures.py::test_two

Using the verbose flag (-v) can help you get the list of tests.