[Zope-Checkins] SVN: Products.Five/branches/1.5/viewlet/ Functional tests shouldn't use zope.app.testing.placelesssetup because that in itself

Philipp von Weitershausen philikon at philikon.de
Mon Jan 8 11:54:00 EST 2007


Log message for revision 71818:
  Functional tests shouldn't use zope.app.testing.placelesssetup because that in itself
  creates an interaction and requests create interactions as well.
  

Changed:
  U   Products.Five/branches/1.5/viewlet/directives.txt
  U   Products.Five/branches/1.5/viewlet/tests.py

-=-
Modified: Products.Five/branches/1.5/viewlet/directives.txt
===================================================================
--- Products.Five/branches/1.5/viewlet/directives.txt	2007-01-08 16:30:24 UTC (rev 71817)
+++ Products.Five/branches/1.5/viewlet/directives.txt	2007-01-08 16:53:59 UTC (rev 71818)
@@ -530,3 +530,8 @@
 
   >>> import shutil
   >>> shutil.rmtree(temp_dir)
+
+Clear registries:
+
+  >>> from zope.testing.cleanup import cleanUp
+  >>> cleanUp()

Modified: Products.Five/branches/1.5/viewlet/tests.py
===================================================================
--- Products.Five/branches/1.5/viewlet/tests.py	2007-01-08 16:30:24 UTC (rev 71817)
+++ Products.Five/branches/1.5/viewlet/tests.py	2007-01-08 16:53:59 UTC (rev 71818)
@@ -84,12 +84,10 @@
     setup.placefulTearDown()
 
 def test_suite():
-    return unittest.TestSuite((
+    return unittest.TestSuite([
         FunctionalDocFileSuite('README.txt'),
-        FunctionalDocFileSuite('directives.txt',
-                     setUp=setUp, tearDown=tearDown
-                     ),
-        ))
+        FunctionalDocFileSuite('directives.txt'),
+        ])
 
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')



More information about the Zope-Checkins mailing list