pytest -x --lf when you are fixing a failure
-x stops at the first failure. --lf runs only the tests that failed last time. Together they turn a five minute suite into a five second loop while you work on the thing that is broken.
pytest -x --lf--ff runs the failures first and then the rest, for when you think you have fixed it.
pythontesting