[Zope-dev] Unittests with different zope configuration?

Stefan H. Holek stefan at epy.co.at
Wed Jun 7 06:04:18 EDT 2006


I use this to set debug-mode off:

     # Switch off debug mode
     import App.config
     config = App.config.getConfiguration()
     config.debug_mode = 0
     App.config.setConfiguration(config)

Stefan


On 5. Jun 2006, at 11:50, Andreas Jung wrote:

> Does anyone know how to write unittests that have to deal with  
> different configurations in zope.conf? In my particular case I need  
> write some tests for sequence.sort() that deal with the 'locale'  
> configuration in zope.conf.
> So how do I setup a different configurations in a unit test?
>
> Andreas

--
Anything that happens, happens.  --Douglas Adams




More information about the Zope-Dev mailing list