python - nosetests import error for existing installed module -



python - nosetests import error for existing installed module -

trying add together nose tests existing project. class beingness tested has dependencies, in turn depend on module in our code base of operations (let's phone call extern_module), in separate project.

i installed extern_module using setup.py. can import if open python shell.

when seek run test, however, i'm told extern_module not found. i'm new python have whole import mechanism downwards - why module can import python shell not available elsewhere?

edit

turns out issue importing extern_module.submodule. if alter dependency of test class import extern_module only, things seem fine.

my test bundle built so:

tests - __init__.py - specific_test_package - __init__.py - mytest.py

and run navigating tests/specific_test_package, , typing nosetests mytest.py

thanks!

python nosetests

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -