1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""
Run the doctests and pagetests.
"""
__metaclass__ = type
import os
from lp.services.testing import build_test_suite
from lp.services.webapp.tests import test_notifications
from lp.testing.layers import (
FunctionalLayer,
LaunchpadFunctionalLayer,
)
from lp.testing.systemdocs import (
LayeredDocFileSuite,
setUp,
tearDown,
)
here = os.path.dirname(os.path.realpath(__file__))
special = {
'canonical_url.txt': LayeredDocFileSuite(
'../doc/canonical_url.txt',
setUp=setUp, tearDown=tearDown,
layer=FunctionalLayer,),
'notification-text-escape.txt': LayeredDocFileSuite(
'../doc/notification-text-escape.txt',
setUp=test_notifications.setUp,
tearDown=test_notifications.tearDown,
stdout_logging=False, layer=None),
'test_adapter.txt': LayeredDocFileSuite(
'../doc/test_adapter.txt',
layer=LaunchpadFunctionalLayer),
# XXX Julian 2009-05-13, bug=376171
# Temporarily disabled because of intermittent failures.
# 'test_adapter_timeout.txt': LayeredDocFileSuite(
# '../doc/test_adapter_timeout.txt',
# setUp=setUp,
# tearDown=tearDown,
# layer=LaunchpadFunctionalLayer),
'test_adapter_permissions.txt': LayeredDocFileSuite(
'../doc/test_adapter_permissions.txt',
layer=LaunchpadFunctionalLayer),
'uri.txt': LayeredDocFileSuite(
'../doc/uri.txt',
setUp=setUp, tearDown=tearDown,
layer=FunctionalLayer),
}
def test_suite():
return build_test_suite(here, special, layer=LaunchpadFunctionalLayer)
|