Back to index

plone3  3.1.7
Functions
wicked.tests Namespace Reference

Functions

def test_suite

Function Documentation

Definition at line 1 of file tests.py.

00001 def test_suite():
00002     import unittest, doctest
00003     from Testing.ZopeTestCase import ZopeDocFileSuite
00004     try:
00005         from Products.PloneTestCase.layer import ZCMLLayer
00006     except ImportError:
00007         from collective.testing.layer import ZCMLLayer
00008     from wicked.utils import test_suite as utilsuite
00009     from wicked.link import test_suite as linksuite
00010 
00011     cachemanager = ZopeDocFileSuite('cache.txt',
00012                                     package='wicked',
00013                                     optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | doctest.ELLIPSIS
00014                                     )
00015     cachemanager.layer = ZCMLLayer
00016     return unittest.TestSuite((utilsuite(), linksuite(), cachemanager))
00017