iarpa-felix / synbio-schema

A schema for synthetic biology, inspired by IARPA FELIX
https://semantic-synbio.github.io/synbio-schema/
MIT License
0 stars 0 forks source link

Cannot find reference 'datamodel' in '__init__.py' #2

Open turbomam opened 2 years ago

turbomam commented 2 years ago

see

from synbio_schema.datamodel import Person

in tests/test_data.py

__init__.py just says:

from .synbio_schema import *

turbomam commented 2 years ago

so make test-python says

poetry run python -m unittest discover E

ERROR: tests.test_data (unittest.loader._FailedTest) ImportError: Failed to import test module: tests.test_data Traceback (most recent call last): File "/Users/MAM/.pyenv/versions/3.9.13/lib/python3.9/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/Users/MAM/.pyenv/versions/3.9.13/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name import(name) File "/Users/MAM/Documents/gitrepos/semantic-synbio/synbio-schema/tests/test_data.py", line 7, in from synbio_schema.datamodel import Person ModuleNotFoundError: No module named 'synbio_schema.datamodel'