Advertisement

TrimwebsolutionsTrimwebsolutions

Problem and Solutions

Testing project using pytest with tests from external "tests" directory in python ?

By M.K. Verma · 3 May 2022

Testing project using pytest with tests from external "tests" directory in python ?

You need to add project1 path into your PYTHONPATH

OR

use inline command: PYTHONPATH=project1 pytest tests/