website
website copied to clipboard
[BUG] Issues with running test script locally
trafficstars
Describe the bug
In following the directions in https://github.com/datacommonsorg/website/blob/master/README.md, there look to be a couple of dep issues in the script. For sure pytest and flask are not currently being installed correctly, but also there is this bug:
___________ ERROR collecting server/tests/services/discovery_test.py ___________
ImportError while importing test module '/Users/jengishchokusu/website-1/server/tests/services/discovery_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
server/__init__.py:23: in <module>
from flask_babel import Babel
E ModuleNotFoundError: No module named 'flask_babel'
To Reproduce
Running on Mac in terminal.
Steps to reproduce the behavior:
- Follow the directions in readme to run tests.
Expected behavior
Should run tests and not fail on dependencies.