[Zope-dev] Zope 2.7 configuration changes: how to run unittests?

Chris McDonough chrism@zope.com
27 Apr 2003 16:50:16 -0400


I believe I've just checked in fixes that allow this pattern to continue
to work... cvs up should get you to a place it works...

- C


On Sun, 2003-04-27 at 14:03, Yuppie wrote:
> 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
> 
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )