On Mon, Jul 27, 2009 at 2:57 AM, Martin Aspeli<optilude+li...@gmail.com> wrote:
> Hanno Schlichting wrote:
>> The ZopeTestCase classes themselves don't set up any of the ZCML
>> structure right now and I'd like to keep it that way.
> True. This isn't a ZCML, thing, though. :)
The thread local itself is not. But without the permission utilities
being registered you don't get very far.
>> Isn't the placeless layer exactly for this use-case of getting some
>> "minimal integration" fixture set up? Since Zope 2.12 a Zope2 specific
>> version of that is in Testing.ZopeTestCase.placeless. Before you would
>> get it from zope.app.testing.placelesssetup.
> I see. That sounds like a sensible place. My main aim is that when you
> use a PloneTestCase, you should get the interaction set up so that calls
> to zope.security.checkPermission() don't fail. Does PTC and other
> similar things set up the placeless layer? Or something like it?
So far nothing sets up the interaction as far as I know.
I tried talking Stefan into having a look at this mess ;-)
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -