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

./run_tests fails #6

Closed
mthaddon opened this issue Oct 29, 2020 · 3 comments
Closed

./run_tests fails #6

mthaddon opened this issue Oct 29, 2020 · 3 comments

Comments

@mthaddon
Copy link
Contributor

I've just downloaded the charm code, and from looking in the README.md I tried running the tests, but got:

$ ./run_tests 
tests.test_charm (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: tests.test_charm (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_charm
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/mthaddon/repos/prometheus-operator/prometheus-operator/tests/test_charm.py", line 8, in <module>
    from ops.testing import Harness
ModuleNotFoundError: No module named 'ops'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
@facundobatista
Copy link
Contributor

Did you create the virtualenv and added dependencies as it specifies de "Developing" section previous to "Testing"?

@balbirthomas
Copy link
Contributor

@mthaddon Is this still an issue ? Or may I close this issue ?

@balbirthomas
Copy link
Contributor

closing issue as it is no longer reproducible. Please reopen if it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants