Changeset 6736 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 13 Sep 2011, 08:56:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/tests/test_doctests.py
r6734 r6736 22 22 """Setup doctests for browser module. 23 23 """ 24 import doctest 25 import os 26 import unittest 27 from waeup.sirp.testing import ( 28 setUp, tearDown, getRootFolder, checker, FunctionalLayer) 24 from waeup.sirp.testing import get_doctest_suite 29 25 30 26 def test_suite(): 31 suite = unittest.TestSuite() 32 for filename in [ 33 'batchprocessing.txt', 34 'breadcrumbs.txt', 35 'browser.txt', 36 ]: 37 path = os.path.join( 38 os.path.dirname( 39 os.path.dirname(__file__)), filename) 40 test = doctest.DocFileSuite( 41 path, 42 module_relative=False, 43 setUp=setUp, tearDown=tearDown, 44 globs = dict(getRootFolder = getRootFolder), 45 optionflags = doctest.ELLIPSIS + doctest.NORMALIZE_WHITESPACE, 46 checker = checker, 47 ) 48 test.layer = FunctionalLayer 49 suite.addTest(test) 27 suite = get_doctest_suite([ 28 'browser/batchprocessing.txt', 29 'browser/breadcrumbs.txt', 30 'browser/browser.txt', 31 ]) 50 32 return suite
Note: See TracChangeset for help on using the changeset viewer.