Check out example codes for "pytest tests in subfolder". It will help you in understanding the concepts better.
Code Example 1
# Create a file containing
import os, pathlib
import pytest
os.chdir( pathlib.Path.cwd() / 'Tests' )
pytest.main()
# And use the command `python tests.py` to run it.
Learn ReactJs, React Native from akashmittal.com