Pytest rerun/retry class if any test inside the class fails
pytest retry failure
https://pypi.org/project/pytest-retry-class/0.1/
pip install pytest-retry-class
pytest --maxretry 2 test.py
pytest example/pytest-xdist-support/tests
pytest example/pytest-dependency-support/tests
pytest example/rerun-class/tests