[Checkins] SVN: z3c.searcher/trunk/ - Fixed test dependencies, so tests run with current version of ``z3c.form``.

Michael Howitz mh at gocept.com
Tue Oct 19 02:50:24 EDT 2010


Log message for revision 117741:
  - Fixed test dependencies, so tests run with current version of ``z3c.form``.
  
  - Using Python's ``doctest`` module instead of depreacted ``zope.testing.doctest``.
  

Changed:
  U   z3c.searcher/trunk/CHANGES.txt
  U   z3c.searcher/trunk/setup.py
  U   z3c.searcher/trunk/src/z3c/searcher/tests.py

-=-
Modified: z3c.searcher/trunk/CHANGES.txt
===================================================================
--- z3c.searcher/trunk/CHANGES.txt	2010-10-19 06:46:34 UTC (rev 117740)
+++ z3c.searcher/trunk/CHANGES.txt	2010-10-19 06:50:23 UTC (rev 117741)
@@ -5,8 +5,10 @@
 0.6.1 (unreleased)
 ------------------
 
-- ...
+- Fixed test dependencies, so tests run with current version of ``z3c.form``.
 
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
 
 0.6.0 (2009-09-20)
 ------------------
@@ -16,7 +18,7 @@
 
 - Bugfix: The criterim filter didn't work with more then one criterium used.
   The search form now locates the filter form and will set a individual prefix
-  for the criterium form. If you use a custom criterium form, you probably 
+  for the criterium form. If you use a custom criterium form, you probably
   have to review your custom implementation. Especialy review the prefix setup
   in the setupCriteriumRows method.
 

Modified: z3c.searcher/trunk/setup.py
===================================================================
--- z3c.searcher/trunk/setup.py	2010-10-19 06:46:34 UTC (rev 117740)
+++ z3c.searcher/trunk/setup.py	2010-10-19 06:50:23 UTC (rev 117741)
@@ -57,6 +57,7 @@
     namespace_packages = ['z3c',],
     extras_require = dict(
         test = [
+            'z3c.form [test]',
             'z3c.macro',
             'z3c.testing',
             'zope.app.authentication',

Modified: z3c.searcher/trunk/src/z3c/searcher/tests.py
===================================================================
--- z3c.searcher/trunk/src/z3c/searcher/tests.py	2010-10-19 06:46:34 UTC (rev 117740)
+++ z3c.searcher/trunk/src/z3c/searcher/tests.py	2010-10-19 06:50:23 UTC (rev 117741)
@@ -11,13 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
-$Id:$
-"""
-__docformat__ = "reStructuredText"
-
 import unittest
-from zope.testing import doctest
+import doctest
 
 import z3c.testing
 from z3c.searcher import interfaces
@@ -75,7 +70,3 @@
         unittest.makeSuite(TestTextCriterium),
         unittest.makeSuite(TestSearchFilter),
         ))
-
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')



More information about the checkins mailing list