8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py files. |
1 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
8356.1.1
by Leonard Richardson
Partial move. |
4 |
"""
|
5 |
Run the doctests and pagetests.
|
|
6 |
"""
|
|
7 |
||
8 |
import os |
|
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
9 |
|
8356.1.1
by Leonard Richardson
Partial move. |
10 |
from canonical.launchpad.testing.systemdocs import ( |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
11 |
LayeredDocFileSuite, |
12 |
setUp, |
|
13 |
tearDown, |
|
14 |
)
|
|
11666.3.5
by Curtis Hovey
Import layers from canonical.testing.layers. |
15 |
from canonical.testing.layers import DatabaseLayer, LaunchpadZopelessLayer |
8356.1.4
by Leonard Richardson
Initial try at refactored test runner. |
16 |
from lp.services.testing import build_test_suite |
8356.1.1
by Leonard Richardson
Partial move. |
17 |
|
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
18 |
|
8356.1.1
by Leonard Richardson
Partial move. |
19 |
here = os.path.dirname(os.path.realpath(__file__)) |
20 |
||
8356.1.2
by Leonard Richardson
Fixed setup.py so the moved monitoring script will be run. |
21 |
special = { |
22 |
'script-monitoring.txt': LayeredDocFileSuite( |
|
23 |
'../doc/script-monitoring.txt', |
|
24 |
setUp=setUp, tearDown=tearDown, |
|
11300.2.26
by Stuart Bishop
Test unhandled exception handling by LaunchpadScript |
25 |
layer=LaunchpadZopelessLayer, |
26 |
),
|
|
27 |
'launchpad-scripts.txt': LayeredDocFileSuite( |
|
28 |
'../doc/launchpad-scripts.txt', |
|
29 |
layer=DatabaseLayer, |
|
8356.1.2
by Leonard Richardson
Fixed setup.py so the moved monitoring script will be run. |
30 |
),
|
31 |
}
|
|
8356.1.1
by Leonard Richardson
Partial move. |
32 |
|
11300.2.26
by Stuart Bishop
Test unhandled exception handling by LaunchpadScript |
33 |
|
8356.1.1
by Leonard Richardson
Partial move. |
34 |
def test_suite(): |
8356.1.4
by Leonard Richardson
Initial try at refactored test runner. |
35 |
return build_test_suite(here, special) |