[Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?
Chris Withers
chris at simplistix.co.uk
Wed Oct 5 04:45:54 EDT 2005
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 getPortal(self):
> manage_addCMFSite(self.app, portal_name)
> return getattr(self.app, portal_name)
....hahaha, and watch your tests take hours to run ;-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-CMF
mailing list