I'm trying to test a simple python code using pytest. My hierarchy is as follows:
PythonExamples
files
mymath.py
tests
test_mymath.py
In test_mymath.py, I import mymath as
from ..files import mymath as mm
def test_mysum():
assert mm.mysum(2,3) == 5
In the PythonExamples folder, run the py.test tests command, however I get the following message:
Parent module '' not loaded, can not perform relative import
What can it be?