Ross Patterson writes:

> Daniel Nouri writes:
>> Not going into the TANGLED MESS that Plone test setups have arrived to,
>> I believe that you'll need to load your ZCML if you depend on the
>> registrations therein in your test.  That is, AFAIK, noone's going to
>> implicitely load the site.zcml for you, which is a good thing.
>>
>> And yes, being able to run the tests independently of the specific
>> buildout you're using it with is quite a feature.
>
> The PloneSite layer depends on the ZCML layer which does indeed load
> site.zcml.  So if the ZCML your test fixture requires is included by
> loading site.zcml for the instance and you're using the layer PloneSite
> (which PloneTestCase does), then you don't need to load it explicitly in
> your test fixture.  At least that's my understanding.  :)

Ugh.  If that's so, I call it broken.

> BTW, I'm very much in favor of reducing the boilerplate in ZopeSkel,
> particularly the testing boilerplate.  Here's the boilerplate I use for
> a testing.py module:

I like this.  Anyone against using it for our ZopeSkel templates?


-- 
http://danielnouri.org


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to