[Checkins] SVN: zc.selenium/branches/wosc-zope2/src/zc/selenium/ need to register selenium tests as views, not adapters, so Five has a chance to acquistion-wrap them

Wolfgang Schnerring wosc at wosc.de
Tue Feb 17 05:02:27 EST 2009


Log message for revision 96630:
  need to register selenium tests as views, not adapters, so Five has a chance to acquistion-wrap them
  

Changed:
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/pytest.py
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.py
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.zcml

-=-
Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/pytest.py
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/pytest.py	2009-02-17 10:01:40 UTC (rev 96629)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/pytest.py	2009-02-17 10:02:27 UTC (rev 96630)
@@ -187,10 +187,6 @@
 
 
 class Test(object):
-    component.adapts(
-        interface.Interface,
-        zope.publisher.interfaces.browser.IDefaultBrowserLayer)
-
     interface.implements(ISeleniumTest)
 
     def __init__(self, context, request):

Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.py
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.py	2009-02-17 10:01:40 UTC (rev 96629)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.py	2009-02-17 10:02:27 UTC (rev 96630)
@@ -22,6 +22,7 @@
 
 
 class TestSelenium(zc.selenium.pytest.Test):
+    """docstring."""
 
     def test_open(self):
         self.selenium.open('http://%s/' % self.selenium.server)

Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.zcml
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.zcml	2009-02-17 10:01:40 UTC (rev 96629)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/tests.zcml	2009-02-17 10:02:27 UTC (rev 96630)
@@ -1,9 +1,10 @@
 <configure
-  xmlns="http://namespaces.zope.org/zope">
+  xmlns="http://namespaces.zope.org/browser">
 
-  <adapter
-    factory=".tests.TestSelenium"
+  <page
+    for="*"
     name="zc.selenium.tests.TestSelenium"
+    class=".tests.TestSelenium"
     permission="zope.Public"
     />
 



More information about the Checkins mailing list