[Zope-CMF] Re: [dev] writing tests for CMF 2.1

2006-11-09 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: Layers -- ZCML is set up using test layers. Their setUp() and tearDown() methods are only run once for all tests in the layer. Maybe of interest, I've attached the layers file I use when testing Zope 2 apps. It "does the right thing" w.r.t.

[Zope-CMF] Re: [dev] writing tests for CMF 2.1

2006-11-08 Thread Philipp von Weitershausen
yuppie wrote: Since CMF 2.0 I did a lot of test refactoring, changing the ways CMF tests are set up. Goal was to use more generic and up to date testing patterns, making it easier to write new tests. Here is an overview what changed: ZopeTestCase.app() -- All tests that depe