102
102
from zope.server.logger.pythonlogger import PythonLogger
104
from lp.services.config import (
109
from lp.services.config.fixture import (
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,
118
from lp.services.webapp.interfaces import (
124
from lp.services.webapp.servers import (
125
LaunchpadAccessLogger,
126
register_launchpad_request_publication_factories,
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,
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 (
117
from lp.services.config.fixture import (
139
121
from lp.services.googlesearch.tests.googleserviceharness import (
140
122
GoogleServiceTestSetup,
124
from lp.services.librarianserver.testing.server import LibrarianServerFixture
142
125
from lp.services.mail.mailbox import (
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 (
142
from lp.services.webapp.servers import (
143
LaunchpadAccessLogger,
144
register_launchpad_request_publication_factories,
146
import lp.services.webapp.session
151
147
from lp.testing import (
156
153
from lp.testing.dbuser import switch_dbuser
157
154
from lp.testing.pgsql import PgTestSetup
155
from lp.testing.smtpd import SMTPController
160
158
orig__call__ = zope.app.testing.functional.HTTPCaller.__call__