myria3d
myria3d copied to clipboard
How to run tests?
I'm having trouble running the unit tests:
> pytest
ImportError while loading conftest '/Users/Adam/Downloads/myria3d/tests/conftest.py'.
tests/conftest.py:9: in <module>
from myria3d.pctl.dataset.toy_dataset import make_toy_dataset_from_test_file
E ModuleNotFoundError: No module named 'myria3d.pctl'
Any idea what I'm doing wrong?
Hello @adamjstewart,
I'm not sure why it does not find this submodule when running directly with the pytest command (I just tried and got the same issue).
Running pytest with python -m pytest works on my side.
I think my problem is missing dependencies. I don't use conda, and haven't yet figured out how to build with pip. What code coverage do you currently have (pytest --cov=myria3d)? That's all I'm trying to figure out.
I think I found a few bugs. The __init__.py in the root of the repo breaks things for me. Also, the lack of __init__.py in the tests directories and subdirectories breaks things too.