~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/tests/test_branch.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:
24
24
from zope.component import getUtility
25
25
from zope.security.proxy import removeSecurityProxy
26
26
 
27
 
from canonical.config import config
28
 
from canonical.database.constants import UTC_NOW
29
 
from canonical.launchpad import _
30
 
from lp.services.database.lpstorm import IStore
31
 
from canonical.launchpad.webapp.interfaces import IOpenLaunchBag
32
 
from canonical.testing.layers import (
33
 
    AppServerLayer,
34
 
    DatabaseFunctionalLayer,
35
 
    LaunchpadZopelessLayer,
36
 
    )
 
27
from lp import _
37
28
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
38
29
from lp.blueprints.enums import NewSpecificationDefinitionStatus
39
30
from lp.blueprints.interfaces.specification import ISpecificationSet
116
107
from lp.registry.interfaces.person import PersonVisibility
117
108
from lp.registry.interfaces.pocket import PackagePublishingPocket
118
109
from lp.registry.model.sourcepackage import SourcePackage
 
110
from lp.services.config import config
 
111
from lp.services.database.constants import UTC_NOW
 
112
from lp.services.database.lpstorm import IStore
119
113
from lp.services.osutils import override_environ
120
114
from lp.services.propertycache import clear_property_cache
 
115
from lp.services.webapp.interfaces import IOpenLaunchBag
121
116
from lp.testing import (
122
117
    ANONYMOUS,
123
118
    celebrity_logged_in,
133
128
    ws_object,
134
129
    )
135
130
from lp.testing.factory import LaunchpadObjectFactory
 
131
from lp.testing.layers import (
 
132
    AppServerLayer,
 
133
    DatabaseFunctionalLayer,
 
134
    LaunchpadZopelessLayer,
 
135
    )
136
136
from lp.translations.model.translationtemplatesbuildjob import (
137
137
    ITranslationTemplatesBuildJobSource,
138
138
    )