8687.15.15
by Karl Fogel
Add the copyright header block to files under lib/lp/bugs/. |
1 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
3 |
|
4 |
"""Test harness for running tests against IHasBugcontact
|
|
5 |
implementations.
|
|
6 |
"""
|
|
7 |
||
8 |
import unittest |
|
9 |
||
5788.1.2
by James Henstridge
Fix up modules that were importing testing infrastructure from |
10 |
from canonical.launchpad.testing.systemdocs import ( |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
11 |
LayeredDocFileSuite, |
12 |
tearDown, |
|
13 |
)
|
|
11666.3.5
by Curtis Hovey
Import layers from canonical.testing.layers. |
14 |
from canonical.testing.layers import DatabaseFunctionalLayer |
7675.1025.1
by Gary Poster
structural subscriptions are moved from registry to bugs. moved tests pass. |
15 |
from lp.bugs.tests.test_structuralsubscriptiontarget import ( |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
16 |
distributionSetUp, |
17 |
productSetUp, |
|
18 |
)
|
|
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
19 |
|
20 |
||
21 |
def test_suite(): |
|
6080.7.2
by Tom Berger
rename bag contact to bug supervisor in most database and interfaces code |
22 |
"""Return the `IHasBugSupervisor` TestSuite."""
|
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
23 |
suite = unittest.TestSuite() |
24 |
||
25 |
setUpMethods = [ |
|
26 |
productSetUp, |
|
5585.11.3
by Tom Berger
convert distribution bug contacts to structural subscriptions |
27 |
distributionSetUp, |
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
28 |
]
|
29 |
||
30 |
for setUpMethod in setUpMethods: |
|
6080.7.2
by Tom Berger
rename bag contact to bug supervisor in most database and interfaces code |
31 |
test = LayeredDocFileSuite('has-bug-supervisor.txt', |
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
32 |
setUp=setUpMethod, tearDown=tearDown, |
9974.1.1
by Curtis Hovey
Moved structuralsubscriptions to lp.registry. |
33 |
layer=DatabaseFunctionalLayer) |
5585.11.1
by Tom Berger
convert bug contacts indirect subscriptions to bug subscriptions |
34 |
suite.addTest(test) |
35 |
||
36 |
return suite |