I managed to get nose to run in what I think is the right environment
from within my VE by giving the explicit path to nosetests, but it can
not import turbogears properly, which I need for setting the config
stuff in the functional tests that use session variables.
Just this:
import turbogears
fails in the rest case with the following exception:
======================================================================
ERROR: Failure: ImportError (cannot import name config)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/momcafe/momcafe1b_ve/lib/python2.4/site-packages/nose-0.10.1-py2.4.egg/nose/loader.py",
line 363, in loadTestsFromName
module = self.importer.importFromPath(
File
"/home/momcafe/momcafe1b_ve/lib/python2.4/site-packages/nose-0.10.1-py2.4.egg/nose/importer.py",
line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"/home/momcafe/momcafe1b_ve/lib/python2.4/site-packages/nose-0.10.1-py2.4.egg/nose/importer.py",
line 84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"/home/momcafe/momcafe1b_ve/momcafe-dev/momcafe/tests/test_sa.py", line
3, in ?
import turbogears
File
"/home/momcafe/momcafe1b_ve/lib/python2.4/site-packages/TurboGears-1.0.4.1-py2.4.egg/turbogears/__init__.py",
line 5, in ?
from turbogears import config
ImportError: cannot import name config
----------------------------------------------------------------------
Ran 1 test in 0.001s
This is weird because when I start python form the ve, I have no problem
importing turbogears and config. Has anyone used nose with a VE who
might have some clues?
Thanks
Iain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---