Postmortem Debugging in pytest
If you'd like to debug your code/test if only it throws an error run:    $ pytest -x --pdb       ...
Tags: python, pytest, debug