1
# Copyright 2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
5
Run the doctests and pagetests.
10
from zope.testing.cleanup import cleanUp
12
from canonical.launchpad.testing import browser
13
from canonical.launchpad.testing.systemdocs import (
17
from canonical.testing.layers import (
19
LaunchpadFunctionalLayer,
21
from lp.services.testing import build_test_suite
24
here = os.path.dirname(os.path.realpath(__file__))
27
def layerlessTearDown(test):
28
"""Clean up any Zope registrations."""
33
'webservice-configuration.txt': LayeredDocFileSuite(
34
'../doc/webservice-configuration.txt',
35
setUp=setGlobs, tearDown=layerlessTearDown, layer=None),
36
# This test is actually run twice to prove that the AppServerLayer
37
# properly isolates the database between tests.
38
'launchpadlib.txt': LayeredDocFileSuite(
39
'../doc/launchpadlib.txt',
41
setUp=browser.setUp, tearDown=browser.tearDown,),
42
'launchpadlib2.txt': LayeredDocFileSuite(
43
'../doc/launchpadlib.txt',
45
setUp=browser.setUp, tearDown=browser.tearDown,),
50
return build_test_suite(here, special, layer=LaunchpadFunctionalLayer)