pytest-incremental

an incremental test runner (pytest plug-in)

pytest-incremental analyses your project structure and file
modifications between test-runs
to modify the order tests are executed and de-select tests.
This allows a much faster feedback for interactive test execution.