[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/ Make getRootFolder available to the testCase.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Wed Dec 1 09:37:08 EST 2010


Log message for revision 118660:
  Make getRootFolder available to the testCase.

Changed:
  U   gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py
  U   gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py

-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py	2010-12-01 14:16:40 UTC (rev 118659)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/__init__.py	2010-12-01 14:37:08 UTC (rev 118660)
@@ -41,9 +41,9 @@
             HTTPPublicationRequestFactory(self.db)
 
 
-# Switching the db is handled by testSetUp.
 class TestCase(unittest.TestCase):
 
     def setUp(self):
         self.selenium = gocept.selenium.selenese.Selenese(
             self.layer.selenium, self)
+        self.getRootFolder = self.layer.getRootFolder

Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py	2010-12-01 14:16:40 UTC (rev 118659)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py	2010-12-01 14:37:08 UTC (rev 118660)
@@ -24,7 +24,7 @@
 
     def setUp(self):
         super(TestGrokTestCase, self).setUp()
-        root = self.layer.getRootFolder()
+        root = self.getRootFolder()
         root['app'] = App()
         transaction.commit()
 



More information about the checkins mailing list