[Checkins] SVN: gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/ Add tests for ZODB isolation for the plone flavour

Wolfgang Schnerring wosc at wosc.de
Sun Dec 26 09:19:06 EST 2010


Log message for revision 119130:
  Add tests for ZODB isolation for the plone flavour
  

Changed:
  U   gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/__init__.py
  U   gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone3/test_plone3.py
  U   gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone4/test_plone4.py

-=-
Modified: gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/__init__.py
===================================================================
--- gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/__init__.py	2010-12-26 14:15:32 UTC (rev 119129)
+++ gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/__init__.py	2010-12-26 14:19:06 UTC (rev 119130)
@@ -19,6 +19,11 @@
 
 
 class TestCase(gocept.selenium.base.TestCase,
+               gocept.selenium.zope2.SandboxPatch,
                Products.PloneTestCase.PloneTestCase.FunctionalTestCase):
 
     layer = gocept.selenium.zope2.Layer(PloneSiteLayer)
+
+    def getRootFolder(self):
+        """forward API-compatibility with zope.app.testing"""
+        return self.app

Modified: gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone3/test_plone3.py
===================================================================
--- gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone3/test_plone3.py	2010-12-26 14:15:32 UTC (rev 119129)
+++ gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone3/test_plone3.py	2010-12-26 14:19:06 UTC (rev 119130)
@@ -24,6 +24,9 @@
 class PloneTests(gocept.selenium.tests.isolation.IsolationTests,
                  gocept.selenium.plone.TestCase):
 
+    def getDatabase(self):
+        return gocept.selenium.zope2.get_current_db()
+
     def test_plone_login(self):
         sel = self.selenium
         sel.open('/plone')

Modified: gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone4/test_plone4.py
===================================================================
--- gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone4/test_plone4.py	2010-12-26 14:15:32 UTC (rev 119129)
+++ gocept.selenium/branches/wosc-zodb-isolation/src/gocept/selenium/plone/tests/plone4/test_plone4.py	2010-12-26 14:19:06 UTC (rev 119130)
@@ -28,6 +28,9 @@
 
     layer = gocept.selenium.zope2.Layer(PloneSiteLayer, testing.isolationLayer)
 
+    def getDatabase(self):
+        return gocept.selenium.zope2.get_current_db()
+
     def test_plone_login(self):
         sel = self.selenium
         sel.open('/plone')



More information about the checkins mailing list