14538.1.3
by Curtis Hovey
Updated copyright. |
1 |
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
|
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
3 |
||
4 |
"""
|
|
5 |
Run the doctests and pagetests.
|
|
6 |
"""
|
|
7 |
||
8 |
import os |
|
9 |
||
14604.1.1
by Curtis Hovey
Separate test-authoring classes from test-running classes. |
10 |
from lp.testing.layers import ( |
14578.4.4
by William Grant
format-imports. |
11 |
DatabaseFunctionalLayer, |
12 |
LaunchpadZopelessLayer, |
|
13 |
)
|
|
14 |
from lp.services.testing import build_test_suite |
|
14578.4.1
by William Grant
Move the remains of canonical.launchpad.testing to lp.testing. |
15 |
from lp.testing.systemdocs import ( |
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
16 |
LayeredDocFileSuite, |
17 |
setUp, |
|
14550.1.1
by Steve Kowalik
Run format-imports over lib/lp and lib/canonical/launchpad |
18 |
tearDown, |
19 |
)
|
|
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
20 |
|
21 |
||
22 |
here = os.path.dirname(os.path.realpath(__file__)) |
|
23 |
||
24 |
||
25 |
special = { |
|
26 |
'close-account.txt': LayeredDocFileSuite( |
|
27 |
'../doc/close-account.txt', setUp=setUp, tearDown=tearDown, |
|
28 |
layer=LaunchpadZopelessLayer), |
|
29 |
}
|
|
30 |
||
31 |
||
32 |
def test_suite(): |
|
33 |
suite = build_test_suite(here, special, layer=DatabaseFunctionalLayer) |
|
34 |
return suite |