[Checkins] SVN: Zope3/trunk/src/zope/formlib/ftest Added FormlibLayer to existing ftests.

Baiju M baiju.m.mail at gmail.com
Sat Jan 20 01:30:33 EST 2007


Log message for revision 72115:
  Added FormlibLayer to existing ftests.
  

Changed:
  A   Zope3/trunk/src/zope/formlib/ftesting.zcml
  U   Zope3/trunk/src/zope/formlib/ftests.py

-=-
Added: Zope3/trunk/src/zope/formlib/ftesting.zcml
===================================================================
--- Zope3/trunk/src/zope/formlib/ftesting.zcml	2007-01-20 05:32:27 UTC (rev 72114)
+++ Zope3/trunk/src/zope/formlib/ftesting.zcml	2007-01-20 06:30:32 UTC (rev 72115)
@@ -0,0 +1,13 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope"
+   i18n_domain="zope"
+   package="zope.formlib"
+   >
+
+  <!-- This file is the equivalent of site.zcml and it is -->
+  <!-- used for functional testing setup -->
+
+  <include package="zope.app.zcmlfiles" />
+  <include package="zope.formlib" />
+
+</configure>


Property changes on: Zope3/trunk/src/zope/formlib/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: Zope3/trunk/src/zope/formlib/ftests.py
===================================================================
--- Zope3/trunk/src/zope/formlib/ftests.py	2007-01-20 05:32:27 UTC (rev 72114)
+++ Zope3/trunk/src/zope/formlib/ftests.py	2007-01-20 06:30:32 UTC (rev 72115)
@@ -15,10 +15,16 @@
 """
 __docformat__ = "reStructuredText"
 
+import os
 import unittest
 
-import zope.app.testing.functional
+from zope.app.testing import functional
 
+FormlibLayer = functional.ZCMLLayer(
+    os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+    __name__, 'FormlibLayer')
+
 def test_suite():
-    return zope.app.testing.functional.FunctionalDocFileSuite(
-            "errors.txt")
+    errors = functional.FunctionalDocFileSuite("errors.txt")
+    errors.layer = FormlibLayer
+    return unittest.TestSuite((errors,))



More information about the Checkins mailing list