Ignore:
Timestamp:
13 Sep 2011, 08:56:22 (13 years ago)
Author:
uli
Message:

Use the new convenience function from w.s.testing to collect doctests
for browser subpackage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/tests/test_doctests.py

    r6734 r6736  
    2222"""Setup doctests for browser module.
    2323"""
    24 import doctest
    25 import os
    26 import unittest
    27 from waeup.sirp.testing import (
    28     setUp, tearDown, getRootFolder, checker, FunctionalLayer)
     24from waeup.sirp.testing import get_doctest_suite
    2925
    3026def 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        ])
    5032    return suite
Note: See TracChangeset for help on using the changeset viewer.