-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
It would be nice to know how to get set up in this repository, as well as how to run the tests.
My assumptions / attempts so far have included:
- Get a virtualenv, install/update pip, setuptools and wheel as per https://grimoirelab.gitbooks.io/tutorial/content/before-you-start/installing-grimoirelab.html
- Run
python3 setup.py install - Run
pip install -r requirements.txt- maybe? Maybe the last command implicitly installs the reqs?
But how do I run the tests? I tried python3 tests/run_tests.py, but that failed completely. I tried to run it from the tests/ directory and got farther, but it looks like I'm missing a ton of dependencies:
src/grimoirelab-mordred/tests on master [?] via grimoirelab
➔ ./run_tests.py
.EEEEEE
======================================================================
ERROR: test_task (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task.py", line 33, in <module>
from mordred.task import Task
File "../mordred/task.py", line 27, in <module>
from grimoire_elk.elk import get_ocean_backend
ImportError: cannot import name 'get_ocean_backend'
======================================================================
ERROR: test_task_collection (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_collection
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task_collection.py", line 35, in <module>
from mordred.task_collection import TaskRawDataCollection
File "../mordred/task_collection.py", line 42, in <module>
from grimoire_elk.elk import feed_backend
ImportError: cannot import name 'feed_backend'
======================================================================
ERROR: test_task_enrich (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_enrich
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task_enrich.py", line 36, in <module>
from mordred.task_projects import TaskProjects
File "../mordred/task_projects.py", line 36, in <module>
from mordred.task import Task
File "../mordred/task.py", line 27, in <module>
from grimoire_elk.elk import get_ocean_backend
ImportError: cannot import name 'get_ocean_backend'
======================================================================
ERROR: test_task_identities (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_identities
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task_identities.py", line 26, in <module>
import httpretty
ModuleNotFoundError: No module named 'httpretty'
======================================================================
ERROR: test_task_panels (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_panels
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task_panels.py", line 33, in <module>
from mordred.task_panels import TaskPanels
File "../mordred/task_panels.py", line 35, in <module>
from mordred.task import Task
File "../mordred/task.py", line 27, in <module>
from grimoire_elk.elk import get_ocean_backend
ImportError: cannot import name 'get_ocean_backend'
======================================================================
ERROR: test_task_projects (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_task_projects
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/maj/src/grimoirelab-mordred/tests/test_task_projects.py", line 27, in <module>
import httpretty
ModuleNotFoundError: No module named 'httpretty'
----------------------------------------------------------------------
Ran 7 tests in 1.630s
FAILED (errors=6)
If someone could help me with this, I will happily issue a pull request to update the README.md.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels