pytest tests in subfolder

Solutions on MaxInterview for pytest tests in subfolder by the best coders in the world

showing results for - "pytest tests in subfolder"
Kayley
07 Jul 2018
1# Create a file containing
2
3import os, pathlib
4import pytest
5
6os.chdir( pathlib.Path.cwd() / 'Tests' )
7
8pytest.main()
9
10# And use the command `python tests.py` to run it.
similar questions
queries leading to this page
pytest tests in subfolder