[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py Instantiate the layer outside of the testcase.

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


Log message for revision 118659:
  Instantiate the layer outside of the testcase.

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

-=-
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:15:08 UTC (rev 118658)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/grok/tests.py	2010-12-01 14:16:40 UTC (rev 118659)
@@ -14,13 +14,13 @@
 import transaction
 
 import gocept.selenium.grok
-from gocept.selenium.grok import GrokLayer
 from gocept.selenium.grok.fixtures import App
 
+test_layer = gocept.selenium.grok.GrokLayer(gocept.selenium.grok)
 
 class TestGrokTestCase(gocept.selenium.grok.TestCase):
 
-    layer = GrokLayer(gocept.selenium.grok)
+    layer = test_layer
 
     def setUp(self):
         super(TestGrokTestCase, self).setUp()



More information about the checkins mailing list