Skip to content

Instantly share code, notes, and snippets.

@geeky-sh
Last active December 30, 2019 05:59
Show Gist options
  • Save geeky-sh/54aa30c8034edad859207a831eb26085 to your computer and use it in GitHub Desktop.
Save geeky-sh/54aa30c8034edad859207a831eb26085 to your computer and use it in GitHub Desktop.
Python command line goodies
# the below command will start the ipdb debugger as soon as the test fails. this will be really helpful in the cases
# where we want to inspect the variables before returning the exception
pytest tests/test_views.py::test_user_registration_view -s --pdbcls=IPython.terminal.debugger:TerminalPdb --pdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment