[Zope-dev] test setup layer sorting

2009-07-13 Thread Reinout van Rees
zope/testing/testrunner/runner.py's order_by_bases() function orders layers by inheritance, basically. So if you've got a FunctionalTestLayer that inherits from some BasicTestLayer, the tests that use the basic test layer will be executed before the functional test layer ones. If there's no

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Marius Gedminas
On Mon, Jul 13, 2009 at 09:27:54AM +, Reinout van Rees wrote: zope/testing/testrunner/runner.py's order_by_bases() function orders layers by inheritance, basically. So if you've got a FunctionalTestLayer that inherits from some BasicTestLayer, the tests that use the basic test layer will

Re: [Zope-dev] z3c.form: data manager forPersistentDict/PersistentMapping

2009-07-13 Thread Michael Howitz
Am 12.07.2009 um 01:46 schrieb Roger Ineichen: Hi Michael Betreff: [Zope-dev] z3c.form: data manager forPersistentDict/PersistentMapping Hello, z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data

Re: [Zope-dev] z3c.form: data manager for PersistentDict/PersistentMapping

2009-07-13 Thread Michael Howitz
Am 11.07.2009 um 17:43 schrieb Michael Howitz: Hello, z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data object is an instance of dict. So this data manager does neither work for UserDict nor

[Zope-dev] Creating new five.* package

2009-07-13 Thread Thomas Lotze
We've started a new package, five.hashedresource, that is supposed to integrate z3c.hashedresource into Zope2. Just to make sure not to step on someone's toes: is it OK to just create such a package in that namespace? -- Thomas ___ Zope-Dev maillist

Re: [Zope-dev] Creating new five.* package

2009-07-13 Thread Hanno Schlichting
On Mon, Jul 13, 2009 at 1:28 PM, Thomas Lotzetho...@thomas-lotze.de wrote: We've started a new package, five.hashedresource, that is supposed to integrate z3c.hashedresource into Zope2. Just to make sure not to step on someone's toes: is it OK to just create such a package in that namespace?

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Reinout van Rees
On 2009-07-13, Marius Gedminas mar...@gedmin.as wrote: Whatever grok does that interferes with coverage should be fixed. I did some more debugging. In the end it boils down to this: With z3c.testsetup, you can specify a zcml file at the top of your test file. z3c.testsetup creates a ZCMLLayer

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Benji York
On Mon, Jul 13, 2009 at 5:55 AM, Marius Gedminasmar...@gedmin.as wrote: Personally I would much prefer for the unit test layer to be sorted first.  It is already treated specially by zope.testing; I see no harm in hardcoding its sort order. +1 -- Benji York Senior Software Engineer Zope

Re: [Zope-dev] z3c.form: data manager for PersistentDict/PersistentMapping

2009-07-13 Thread Stephan Richter
On Saturday 11 July 2009, Michael Howitz wrote: z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data object is an instance of dict. So this data manager does neither work for UserDict nor

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Marius Gedminas
On Mon, Jul 13, 2009 at 12:27:50PM +, Reinout van Rees wrote: On 2009-07-13, Marius Gedminas mar...@gedmin.as wrote: Whatever grok does that interferes with coverage should be fixed. I did some more debugging. In the end it boils down to this: With z3c.testsetup, you can specify a

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Fred Drake
On Mon, Jul 13, 2009 at 3:36 PM, Marius Gedminasmar...@gedmin.as wrote: Fortunately, the NotImplementedError in ZCMLLayer's tearDown is just a precaution, 99% of the time it is sufficient to run CleanUp.tearDown to get the global state restored to its pristine condition. Keep in mind that a