[Zope-CVS] CVS: Products/ZopeVersionControl/tests - testVersionControl.py:1.4
Brian Lloyd
brian@zope.com
Thu, 16 Jan 2003 16:32:37 -0500
Update of /cvs-repository/Products/ZopeVersionControl/tests
In directory cvs.zope.org:/tmp/cvs-serv22650
Modified Files:
testVersionControl.py
Log Message:
Changed test suite to explicitly install SimpleItem hack for tests to run.
=== Products/ZopeVersionControl/tests/testVersionControl.py 1.3 => 1.4 ===
--- Products/ZopeVersionControl/tests/testVersionControl.py:1.3 Wed Jan 15 17:17:47 2003
+++ Products/ZopeVersionControl/tests/testVersionControl.py Thu Jan 16 16:32:35 2003
@@ -26,6 +26,12 @@
class VersionControlTests(unittest.TestCase):
def setUp(self):
+ # Install a hack to make SimpleItem version aware, so that the
+ # tests work. In normal development, you would mix in the
+ # VersionSupport class on an as-needed basis.
+ import Products.ZopeVersionControl
+ Products.VersionControl.install_hack()
+
from Products.ZopeVersionControl.ZopeRepository import addRepository
from ZODB.DemoStorage import DemoStorage
s = DemoStorage(quota=(1<<20))