With datapusher's virtualenv enabled, this virtualenv's nosetests does not use the virtualenv.
Naturally it will fail with
======================================================================
ERROR: Failure: ImportError (No module named httpretty)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/mnt/ckan/datapusher/src/datapusher/tests/test_unit.py", line 12, in <module>
import httpretty
ImportError: No module named httpretty
Pip freeze disagrees - both httpretty and ckanserviceprovider are installed:
python -c "import httpretty" run inside datapusher's src/datapusher and src/datapusher/tests works fine (no importerror), and which nosetests confirms that nosetests is from the datapusher virtualenv.
Could a section on testing be included in the docs, specifying how to run nosetests using the virtualenv?
With datapusher's virtualenv enabled, this virtualenv's
nosetests
does not use the virtualenv. Naturally it will fail withPip freeze disagrees - both httpretty and ckanserviceprovider are installed:
python -c "import httpretty"
run inside datapusher'ssrc/datapusher
andsrc/datapusher/tests
works fine (no importerror), andwhich nosetests
confirms that nosetests is from the datapusher virtualenv.Could a section on testing be included in the docs, specifying how to run nosetests using the virtualenv?