Problem and Solutions
Testing project using pytest with tests from external "tests" directory in python ?
By M.K. Verma · 3 May 2022

You need to add project1 path into your PYTHONPATH
OR
use inline command: PYTHONPATH=project1 pytest tests/
Advertisement
Problem and Solutions
By M.K. Verma · 3 May 2022

You need to add project1 path into your PYTHONPATH
OR
use inline command: PYTHONPATH=project1 pytest tests/