summaryrefslogtreecommitdiff
path: root/service/test/support
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/support')
-rw-r--r--service/test/support/integration/app_test_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py
index 1cec62c2..dda13b4f 100644
--- a/service/test/support/integration/app_test_client.py
+++ b/service/test/support/integration/app_test_client.py
@@ -33,7 +33,7 @@ from twisted.web.resource import getChildForRequest
# from twisted.web.server import Site as PixelatedSite
from pixelated.adapter.mailstore.leap_attachment_store import LeapAttachmentStore
from pixelated.adapter.services.feedback_service import FeedbackService
-from pixelated.application import ServicesFactory
+from pixelated.application import ServicesFactory, UserAgentMode, SingleUserServicesFactory
from pixelated.config.site import PixelatedSite
from pixelated.adapter.mailstore import LeapMailStore
@@ -85,7 +85,7 @@ class AppTestClient(object):
mails = yield self.mail_service.all_mails()
self.search_engine.index_mails(mails)
- self.service_factory = ServicesFactory()
+ self.service_factory = SingleUserServicesFactory(UserAgentMode(is_single_user=True))
services = mock()
services.keymanager = self.keymanager
services.mail_service = self.mail_service