~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/layers.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-30 10:09:30 UTC
  • mfrom: (14606.2.8 apocalibrarian)
  • Revision ID: launchpad@pqm.canonical.com-20111230100930-kp3e0l6wakissewm
[r=wgrant][no-qa] Move canonical.librarian to
        lp.services.librarian(server).

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    )
102
102
from zope.server.logger.pythonlogger import PythonLogger
103
103
 
104
 
from lp.services.config import (
105
 
    LaunchpadConfig,
106
 
    config,
107
 
    dbconfig,
108
 
    )
109
 
from lp.services.config.fixture import (
110
 
    ConfigFixture,
111
 
    ConfigUseFixture,
112
 
    )
113
104
from canonical.database.sqlbase import session_store
114
 
from lp.services.scripts import execute_zcml_for_scripts
115
 
from lp.services.webapp.authorization import (
116
 
    LaunchpadPermissiveSecurityPolicy,
117
 
    )
118
 
from lp.services.webapp.interfaces import (
119
 
    DEFAULT_FLAVOR,
120
 
    IOpenLaunchBag,
121
 
    IStoreSelector,
122
 
    MAIN_STORE,
123
 
    )
124
 
from lp.services.webapp.servers import (
125
 
    LaunchpadAccessLogger,
126
 
    register_launchpad_request_publication_factories,
127
 
    )
128
 
import lp.services.webapp.session
129
105
from canonical.lazr import pidfile
130
106
from canonical.lazr.testing.layers import MockRootFolder
131
107
from canonical.lazr.timeout import (
132
108
    get_default_timeout_function,
133
109
    set_default_timeout_function,
134
110
    )
135
 
from canonical.librarian.testing.server import LibrarianServerFixture
136
 
from lp.testing import reset_logging
137
111
from canonical.testing.profiled import profiled
138
 
from lp.testing.smtpd import SMTPController
 
112
from lp.services.config import (
 
113
    config,
 
114
    dbconfig,
 
115
    LaunchpadConfig,
 
116
    )
 
117
from lp.services.config.fixture import (
 
118
    ConfigFixture,
 
119
    ConfigUseFixture,
 
120
    )
139
121
from lp.services.googlesearch.tests.googleserviceharness import (
140
122
    GoogleServiceTestSetup,
141
123
    )
 
124
from lp.services.librarianserver.testing.server import LibrarianServerFixture
142
125
from lp.services.mail.mailbox import (
143
126
    IMailBox,
144
127
    TestMailBox,
148
131
from lp.services.memcache.client import memcache_client_factory
149
132
from lp.services.osutils import kill_by_pidfile
150
133
from lp.services.rabbit.server import RabbitServer
 
134
from lp.services.scripts import execute_zcml_for_scripts
 
135
from lp.services.webapp.authorization import LaunchpadPermissiveSecurityPolicy
 
136
from lp.services.webapp.interfaces import (
 
137
    DEFAULT_FLAVOR,
 
138
    IOpenLaunchBag,
 
139
    IStoreSelector,
 
140
    MAIN_STORE,
 
141
    )
 
142
from lp.services.webapp.servers import (
 
143
    LaunchpadAccessLogger,
 
144
    register_launchpad_request_publication_factories,
 
145
    )
 
146
import lp.services.webapp.session
151
147
from lp.testing import (
152
148
    ANONYMOUS,
153
149
    login,
154
150
    logout,
 
151
    reset_logging,
155
152
    )
156
153
from lp.testing.dbuser import switch_dbuser
157
154
from lp.testing.pgsql import PgTestSetup
 
155
from lp.testing.smtpd import SMTPController
158
156
 
159
157
 
160
158
orig__call__ = zope.app.testing.functional.HTTPCaller.__call__