!pip install pytestPyTest
You will need pytest.ini in the root:
[pytest]
pythonpath = ''
pythonpath adds a path to sys.path relative to the root so the imports in test files work.
To discover and run all tests run in terminal:
pytestTo run only specific tests:
pytest filename.py