Open pcheng-scs opened 3 months ago
We are having the same issue as well using the COSMOS repo version 5.17.1.
Folder structure is -TGT |-procedures |-file1.py
The import line looks as follows: from TGT.procedures.file1 import * This throws the error: ModuleNotFoundError: No module named 'TGT'
However we can use load_utility('TGT/procedures/file1.py) fine but we prefer not to instrument this file.
I'm not sure what I'm doing wrong. I get a
ModuleNotFoundError: No module named 'TARGET'
when I try to import my TestGroup.py file into my TestSuite.py. I tried using load_utility, and I get aRuntimeError: load_utility not supported outside of Script Runner
.When I combine my test_suite, and test_group into 1 file, I still get a
ModuleNotFoundError: No module named 'TARGET'
Am I doing something wrong? Not sure how to proceed. My end goal is to have a top level (or several top level) test suite scripts call our test groups. I do not get the
ModuleNotFoundError: No module named 'TARGET'
when the test_suite is not defined in a file.I am using version 5.16.2.
Here's the folder structure I'm trying to use.
Here are the file contents:
test_suite.py (using imports)
test_suite.py (using load_utility)
test_group .py
target.py
Combined TestSuite and TestGroup.py