After cloning repo and running the setup steps, attempting to run behavioural tests with behave as specified in the ./README.md fails with ModuleNotFoundError
Exception ModuleNotFoundError: No module named 'pds_doi_service.core.actions.draft'
Traceback (most recent call last):
File "/media/psf/Home/dev/doi-service/venv/bin/behave", line 8, in <module>
sys.exit(main())
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/__main__.py", line 183, in main
return run_behave(config)
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/__main__.py", line 127, in run_behave
failed = runner.run()
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/runner.py", line 804, in run
return self.run_with_paths()
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/runner.py", line 809, in run_with_paths
self.load_step_definitions()
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/runner.py", line 796, in load_step_definitions
load_step_modules(step_paths)
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/runner_util.py", line 412, in load_step_modules
exec_file(os.path.join(path, name), step_module_globals)
File "/media/psf/Home/dev/doi-service/venv/lib/python3.9/site-packages/behave/runner_util.py", line 386, in exec_file
exec(code, globals_, locals_)
File "features/steps/steps.py", line 13, in <module>
from pds_doi_service.core.actions.draft import DOICoreActionDraft
ModuleNotFoundError: No module named 'pds_doi_service.core.actions.draft'
๐ต๏ธ Expected behavior
I expect the behavioural tests to successfully complete execution.
๐ Describe the bug
After cloning repo and running the setup steps, attempting to run behavioural tests with
behave
as specified in the ./README.md fails with ModuleNotFoundError๐ To Reproduce
Steps to reproduce the behavior:
behave
๐ต๏ธ Expected behavior
I expect the behavioural tests to successfully complete execution.
๐ Version of Software Used
2.3.1(? per af3d94b)
๐ฉบ Test Data / Additional context
The offending import references a file that does not exist in the project, though the import has been present for years.
๐Screenshots
n/a
๐ฅ System Info