website icon indicating copy to clipboard operation
website copied to clipboard

[BUG] Issues with running test script locally

Open KilimAnnejaro opened this issue 1 year ago • 0 comments
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:

  1. Follow the directions in readme to run tests.

Expected behavior

Should run tests and not fail on dependencies.

KilimAnnejaro avatar Feb 01 '24 05:02 KilimAnnejaro