Kaizen Today I Learned by Ville Säävuori

Posts tagged pytest

Pytest Cheat Sheet

Pytest Official Docs Running Fail fast / stop after first failure: pytest -x Run from module or directory: pytest dir/tests/footest.py, pytest dir/ Run specific markers: pytest -m marker (mark with @pytest.mark.mymarker) Drop to pdb on failure: pytest --pdb (set breakpoint w/ breakpoint()) Recreate database using pytest-django: --create-db Configuration pytest.ini conftest.

· Read the full article →