[wingide-users] Running Pylons nosetests from Wing IDE

Rod Morison rod at morison.biz
Mon Mar 16 10:15:28 MDT 2009


Has anyone been able to run nosetests for a Pylons app inside the IDE? 
Afaict, Wing IDE's invocation is different than the nosetests script and 
misses some steps in the PasteScript setup. I'll try to track this down 
myself, but first checking to see if anyone else has cracked this nut.

Here's the exception I get (can't find the config['__file__'] key in 
tests/__init__.py):

File "/usr/lib/python2.5/unittest.py", line 260, in run
  testMethod()
File 
"/home/rod/devel/pylons/pyldev/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/loader.py", 
line 364, in loadTestsFromName
  addr.filename, addr.module)
File 
"/home/rod/devel/pylons/pyldev/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py", 
line 39, in importFromPath
  return self.importFromDir(dir_path, fqname)
File 
"/home/rod/devel/pylons/pyldev/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py", 
line 84, in importFromDir
  mod = load_module(part_fqname, fh, filename, desc)
File 
"/home/rod/devel/pylons/tuts/SimpleSite/simplesite/tests/__init__.py", 
line 23, in <module>
  SetupCommand('setup-app').run([config['__file__']])
File 
"/home/rod/devel/pylons/pyldev/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py", 
line 146, in __getitem__
  return self._current_obj()[key]


More information about the wingide-users mailing list