[Checkins] SVN: zf.zscp/trunk/src/zf/zscp/ added ftests, debug import

Daniel Meier daniel.meier at perse.ch
Sat Apr 8 11:27:02 EDT 2006


Log message for revision 66683:
  added ftests, debug import
  

Changed:
  U   zf.zscp/trunk/src/zf/zscp/interfaces.py
  A   zf.zscp/trunk/src/zf/zscp/skin/README.txt
  U   zf.zscp/trunk/src/zf/zscp/skin/configure.zcml
  A   zf.zscp/trunk/src/zf/zscp/skin/ftests.py

-=-
Modified: zf.zscp/trunk/src/zf/zscp/interfaces.py
===================================================================
--- zf.zscp/trunk/src/zf/zscp/interfaces.py	2006-04-08 15:23:15 UTC (rev 66682)
+++ zf.zscp/trunk/src/zf/zscp/interfaces.py	2006-04-08 15:27:01 UTC (rev 66683)
@@ -40,7 +40,7 @@
 
 class IRepositoryInitializedEvent(zope.interface.Interface):
     """Event fired after a repository was initialized."""
-    repository = Attribute('The initialized repository')
+    repository = zope.interface.Attribute('The initialized repository')
 
 class RepositoryInitializedEvent(object):
     zope.interface.implements(IRepositoryInitializedEvent)
@@ -51,7 +51,7 @@
 
 class IPackageEvent(zope.interface.Interface):
     """An event that involves a package."""
-    package = Attribute('The package that was acted upon')
+    package = zope.interface.Attribute('The package that was acted upon')
 
 class PackageEvent(object):
     zope.interface.implements(IPackageEvent)

Added: zf.zscp/trunk/src/zf/zscp/skin/README.txt
===================================================================
--- zf.zscp/trunk/src/zf/zscp/skin/README.txt	2006-04-08 15:23:15 UTC (rev 66682)
+++ zf.zscp/trunk/src/zf/zscp/skin/README.txt	2006-04-08 15:27:01 UTC (rev 66683)
@@ -0,0 +1,19 @@
+======
+README
+======
+
+Browser tests
+-------------
+
+Setup testbrowser for IWebSiteBrowserSkin functional tests.
+
+    >>> from zope.testbrowser.testing import Browser
+    >>> browser = Browser()
+    >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
+    >>> browser.handleErrors = False
+
+Check if the IWebSiteBrowserSkin skin is a vailable.
+
+    >>> browser.open('http://localhost/++skin++ZSCP/@@contents.html')
+    >>> browser.url
+    'http://localhost/++skin++ZSCP/@@contents.html'


Property changes on: zf.zscp/trunk/src/zf/zscp/skin/README.txt
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Modified: zf.zscp/trunk/src/zf/zscp/skin/configure.zcml
===================================================================
--- zf.zscp/trunk/src/zf/zscp/skin/configure.zcml	2006-04-08 15:23:15 UTC (rev 66682)
+++ zf.zscp/trunk/src/zf/zscp/skin/configure.zcml	2006-04-08 15:27:01 UTC (rev 66683)
@@ -1,6 +1,7 @@
 <configure
-   xmlns="http://namespaces.zope.org/zope"
-   >
+  xmlns="http://namespaces.zope.org/zope"
+  i18n_domain="zope"
+  >
 
       <interface
           interface=".ZSCP"

Added: zf.zscp/trunk/src/zf/zscp/skin/ftests.py
===================================================================
--- zf.zscp/trunk/src/zf/zscp/skin/ftests.py	2006-04-08 15:23:15 UTC (rev 66682)
+++ zf.zscp/trunk/src/zf/zscp/skin/ftests.py	2006-04-08 15:27:01 UTC (rev 66683)
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright (c) 2006 Perse Engineering GmbH and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+"""
+$Id$
+"""
+
+import unittest
+
+from zope.testing import doctest
+from zope.app.testing.functional import FunctionalDocFileSuite
+
+
+
+def test_suite():
+    return unittest.TestSuite((
+        FunctionalDocFileSuite(
+            "README.txt",
+            optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE),
+        ))
+
+
+
+if __name__ == '__main__':
+    unittest.main(defaultTest='test_suite')
\ No newline at end of file


Property changes on: zf.zscp/trunk/src/zf/zscp/skin/ftests.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Checkins mailing list