Open
Description
Hey, guys. I couldn't find a good place to ask questions, so decided to post it here. If it's inappropriate, please advise and I will move it to somewhere else! Thanks!
I switched my mongnoengine installation to editable (along with nose2) to try out some features, and then the first test file (only the first one) of my tests starts to fail with an ImportError
and the trace looks like nose2 was trying to run mongoengine's own test suites. I have tried a few things but still had no luck and no clue about how to address this issue. Any ideas would be super appreciated. Thanks!
My requirements.txt looks like this:
...
-e git+git://github.com/starsirius/mongoengine.git#egg=mongoengine
-e git+git://github.com/starsirius/nose2.git#egg=nose2
My nose2 config file:
[unittest]
start-dir = tests
test-file-pattern = *_tests.py
plugins = nose2.plugins.layers
And the traceback:
======================================================================
ERROR: tests.api.client_apps_tests (nose2.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.api.client_apps_tests
Traceback (most recent call last):
File "/Users/starsirius/Code/project/venv/src/nose2/nose2/plugins/loader/discovery.py", line 201, in _find_tests_in_file
module = util.module_from_name(module_name)
File "/Users/starsirius/Code/project/venv/src/nose2/nose2/util.py", line 81, in module_from_name
__import__(name)
File "/Users/starsirius/Code/project/venv/src/mongoengine/tests/__init__.py", line 2, in <module>
from document import *
File "/Users/starsirius/Code/project/venv/src/mongoengine/tests/document/__init__.py", line 8, in <module>
from indexes import *
File "/Users/starsirius/Code/project/venv/src/mongoengine/tests/document/indexes.py", line 9, in <module>
from nose.plugins.skip import SkipTest
ImportError: No module named nose.plugins.skip
Thanks a lot!