Back to index

plone3  3.1.7
test_doctests.py
Go to the documentation of this file.
00001 """
00002     CMFPlone doctests.  See also ``test_functional``.
00003 """
00004 
00005 from unittest import TestSuite
00006 from zope.testing import doctest
00007 from zope.testing.doctestunit import DocTestSuite, DocFileSuite
00008 
00009 from Products.CMFPlone.tests import PloneTestCase
00010 from Testing.ZopeTestCase import ZopeDocTestSuite
00011 
00012 def test_suite():
00013     suites = (
00014         DocFileSuite('messages.txt', package='Products.CMFPlone.tests'),
00015         DocTestSuite('Products.CMFPlone.CalendarTool'),
00016         ZopeDocTestSuite('Products.CMFPlone.CatalogTool',
00017                          test_class=PloneTestCase.FunctionalTestCase),
00018         DocTestSuite('Products.CMFPlone.i18nl10n'),
00019         ZopeDocTestSuite('Products.CMFPlone.PloneTool',
00020                          test_class=PloneTestCase.FunctionalTestCase),
00021         DocTestSuite('Products.CMFPlone.TranslationServiceTool'),
00022         DocTestSuite('Products.CMFPlone.utils'),
00023         DocTestSuite('Products.CMFPlone.workflow'),
00024         )
00025 
00026     return TestSuite(suites)