[CMF-checkins] CVS: CMF/CMFCore/tests/base - testcase.py:1.5
Shane Hathaway
shane@zope.com
Thu, 2 Jan 2003 12:43:57 -0500
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv23134/CMFCore/tests/base
Modified Files:
testcase.py
Log Message:
In the CMF tests, start Zope if it hasn't already started.
=== CMF/CMFCore/tests/base/testcase.py 1.4 => 1.5 ===
--- CMF/CMFCore/tests/base/testcase.py:1.4 Mon Aug 19 13:29:32 2002
+++ CMF/CMFCore/tests/base/testcase.py Thu Jan 2 12:43:55 2003
@@ -14,6 +14,8 @@
class TransactionalTest( TestCase ):
def setUp( self ):
+ if hasattr(Zope, 'startup'):
+ Zope.startup()
get_transaction().begin()
self.connection = Zope.DB.open()
self.root = self.connection.root()[ 'Application' ]