description
When running a test, which tries to import objects from test.unit.xxxxx the interpreter returns the following error.
There is no error when the working directory is the bim2sim root folder. Then the interpreter find the objects in test.units.xxx, because the test folder is in the root folder.
error
ModuleNotFoundError: No module named 'test.unit'
solutions
- run tests only from root directory
- add path to the testfolder to the PYTHON SYS path - more complex setup/installation
- make the test.unit objects part of the bim2sim framewoke
- attention python includes a built-in module called test
solution 4: part of bim2sim framework
@sfreund1 and @veronikarichter I think the described changes make the test environment more clear. Do you see some disadvantage?
description
When running a test, which tries to import objects from test.unit.xxxxx the interpreter returns the following error.
There is no error when the working directory is the bim2sim root folder. Then the interpreter find the objects in test.units.xxx, because the test folder is in the root folder.
error
solutions
solution 4: part of bim2sim framework
@sfreund1 and @veronikarichter I think the described changes make the test environment more clear. Do you see some disadvantage?