Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-07 Thread Stefan H. Holek
Exactly! ZopeTestCase (CMFTestCase, PloneTestCase) was designed for testing *applications*. As you say, when I write a CMF application I should be able to assume the CMF below works. In this case a fat fixture makes perfect sense (to me). Also, I firmly believe application developers

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-06 Thread Chris Withers
OK, so I misunderstood the actual problem Paul was reporting... Can someone explain it for a stupid person like me? ;-) Chris Stefan H. Holek wrote: Oh, setupCMFSite is sufficiently clever, it's the CMF tests that aren't ;-) Stefan On 5. Okt 2005, at 10:45, Chris Withers wrote: Stefan

[Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff Davis wrote: On Wed, 05 Oct 2005 12:34:25 +0200, Lennart Regebro wrote: Any test including PortalTestCase should really not be seen as a unit test, but a fucntional test. ;) If we could put in some effort of making a minimal dymmy-portal

[Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-06 Thread Geoff Davis
Hi Tres-- I think this is a case of us having a violent agreement :) Sorry if you get this twice -- my first attempt to send appears to have disappeared into the aether. I agree completely that minimalist test rigs with dummy components are a good fit for some things. However, the point I was

[Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Stefan H. Holek
I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) b) Use getPortal() to create a new portal per test def getPortal(self): manage_addCMFSite(self.app, portal_name) return getattr(self.app, portal_name)

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Chris Withers
Stefan H. Holek wrote: I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) Can setupCMFSite not do something more clever if it finds the object already there? b) Use getPortal() to create a new portal per test def

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Lennart Regebro
On 10/5/05, Chris Withers [EMAIL PROTECTED] wrote: Stefan H. Holek wrote: I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) Can setupCMFSite not do something more clever if it finds the object already there? b)

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Paul Winkler
Lennart Regebro said: On 10/5/05, Chris Withers [EMAIL PROTECTED] wrote: Stefan H. Holek wrote: I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) Can setupCMFSite not do something more clever if it finds the