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
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
-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
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
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)
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
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)
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