Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Issues with running test script locally #3923

Open
KilimAnnejaro opened this issue Feb 1, 2024 · 0 comments
Open

[BUG] Issues with running test script locally #3923

KilimAnnejaro opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@KilimAnnejaro
Copy link
Contributor

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 KilimAnnejaro added the bug Something isn't working label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant