How do you run your unit test module
ALiaoSha opened this issue · 1 comments
Hello! I am wondering how you run your test modules in the "tests" directory. When I run the python scripts in "tests" directly, an ImportEerror will be raised because the python interpreter cannot find the modules in "base", "modeler" and "func". Did you come across the same problem?
If I move the test script to pydlm directory, then it works without error. Could you please tell me how do you set your enveronment ? Much obliged.
You should make sure your python working directory includes the parent fold, i.e., the folder where the setup.py exists. You can do this by either calling python under that folder, or adding the path to that folder to sys.path
In the future when I finished the installation part (via pip), you shall have no problem running the tests.