Last active
March 14, 2022 11:15
-
-
Save devhero/8c4cb9801c829d70cfaec457fac239ba to your computer and use it in GitHub Desktop.
pytest cookbook #pytest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run specific method in a file | |
pytest app_folder/file.py -k "method keyword" | |
# enable debugger | |
pytest app_folder/file.py -k "method keyword" --pdb | |
# check for setup errors (wrong imports, etc) | |
pytest --setup-only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment