aorwall / moatless-tools

MIT License
230 stars 20 forks source link

Unit tests: ModuleNotFoundError: No module named 'utils' #21

Closed JensRoland closed 1 month ago

JensRoland commented 3 months ago

Running the tests (after fixing #19 ) results in:

Traceback:
/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/edit/test_clarify.py:4: in <module>
    from utils import create_workspace
E   ModuleNotFoundError: No module named 'utils'

And:

Traceback:
/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/edit/test_edit.py:4: in <module>
    from utils import create_workspace
E   ModuleNotFoundError: No module named 'utils'

And:

Traceback:
/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_rerun_trajectories.py:9: in <module>
    from utils import create_workspace, get_instance
E   ModuleNotFoundError: No module named 'utils'

Maybe I am simply invoking the tests wrong?

aorwall commented 3 months ago

I haven't had time to adjust the tests for all the changes, so they probably don't work at all right now. I've only used test_rerun_trajectories.py to run regressions on the changes. But because of changes I did in the prompts to optimize for Clause 3.5 Sonnet, those also need to be rewritten. My plan right now is to rewrite test_rerun_trajectories.py so that I can at least test the entire flows and check regressions. But I don't have time to fix it right now.