~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/scripts/tests/test_garbo.py

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
from zope.component import getUtility
35
35
from zope.security.proxy import removeSecurityProxy
36
36
 
37
 
from canonical.config import config
38
 
from canonical.database import sqlbase
39
 
from canonical.database.constants import (
40
 
    ONE_DAY_AGO,
41
 
    SEVEN_DAYS_AGO,
42
 
    THIRTY_DAYS_AGO,
43
 
    UTC_NOW,
44
 
    )
45
 
from canonical.launchpad.webapp.interfaces import (
46
 
    IStoreSelector,
47
 
    MAIN_STORE,
48
 
    MASTER_FLAVOR,
49
 
    )
50
 
from canonical.testing.layers import (
51
 
    DatabaseLayer,
52
 
    LaunchpadScriptLayer,
53
 
    LaunchpadZopelessLayer,
54
 
    ZopelessDatabaseLayer,
55
 
    )
56
37
from lp.answers.model.answercontact import AnswerContact
57
38
from lp.bugs.model.bugnotification import (
58
39
    BugNotification,
85
66
    OpenIDConsumerAssociationPruner,
86
67
    UnusedSessionPruner,
87
68
    )
 
69
from lp.services.config import config
 
70
from lp.services.database import sqlbase
 
71
from lp.services.database.constants import (
 
72
    ONE_DAY_AGO,
 
73
    SEVEN_DAYS_AGO,
 
74
    THIRTY_DAYS_AGO,
 
75
    UTC_NOW,
 
76
    )
88
77
from lp.services.database.lpstorm import IMasterStore
89
78
from lp.services.identity.interfaces.account import AccountStatus
90
79
from lp.services.identity.interfaces.emailaddress import EmailAddressStatus
104
93
    )
105
94
from lp.services.verification.interfaces.authtoken import LoginTokenType
106
95
from lp.services.verification.model.logintoken import LoginToken
 
96
from lp.services.webapp.interfaces import (
 
97
    IStoreSelector,
 
98
    MAIN_STORE,
 
99
    MASTER_FLAVOR,
 
100
    )
107
101
from lp.services.worlddata.interfaces.language import ILanguageSet
108
102
from lp.testing import (
109
103
    person_logged_in,
110
104
    TestCase,
111
105
    TestCaseWithFactory,
112
106
    )
 
107
from lp.testing.layers import (
 
108
    DatabaseLayer,
 
109
    LaunchpadScriptLayer,
 
110
    LaunchpadZopelessLayer,
 
111
    ZopelessDatabaseLayer,
 
112
    )
113
113
from lp.translations.model.potmsgset import POTMsgSet
114
114
from lp.translations.model.translationtemplateitem import (
115
115
    TranslationTemplateItem,