NASA-PDS / doi-service

Service and tools for generating DOIs for PDS bundles, collections, and data sets
https://nasa-pds.github.io/doi-service
Other
2 stars 3 forks source link

Behavioural testing of fresh main-branch clone does not successfully execute #352

Open alexdunnjpl opened 1 year ago

alexdunnjpl commented 1 year ago

๐Ÿ› 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:

  1. Follow developer installation instructions
  2. With venv activated in a terminal, run behave
  3. See the following error
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.

๐Ÿ“š 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