Pytest

Run a specific test file

pytest tests/tests_api.py

Run a specific test function:

pytest tests/test_utils.py::test_sort_modules

Run the last failed tests only

pytest --lf

Step the tests when, x amount of tests failed:

pytest --maxfail 2

Letztes Update: March 25, 2023
Erstellt: August 7, 2022