I use this to set debug-mode off:

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


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?


Anything that happens, happens.  --Douglas Adams

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to