[Zope-dev] Zope 2.7 configuration changes: how to run unittests?
Yuppie
schubbe@web.de
Sun, 27 Apr 2003 20:03:52 +0200
Hi!
Seems this change influences the way how to run unittests:
http://cvs.zope.org/Zope/lib/python/Zope/App/startup.py.diff?r1=1.5&r2=1.6
Before this change, I was able to run single tests by adding:
- lib/python to sys.path
- Zope.startup() to the unittest
Now I get this error:
Traceback (most recent call last):
File "testMyModule.py", line 4, in ?
Zope.startup()
File "/Zope27/lib/python/Zope/__init__.py", line 46, in startup
_startup()
File "/Zope27/lib/python/Zope/App/startup.py", line 56, in startup
name = config.db_mount_tab['/']
AttributeError: DefaultConfiguration instance has no attribute
'db_mount_tab'
Is this a bug or need I an other setup for running tests?
TIA,
Yuppie