diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-09-21 18:10:17 -0300 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-09-21 18:10:17 -0300 |
commit | 8d20d0fa7ed226735daba4b0507cf0037860af71 (patch) | |
tree | 0c42b44c476dd3750e196f5cec94affdff8da6ce /service/test/support | |
parent | b492d6928dc757e56404a1a6f0d632658c38bc13 (diff) |
#442 Creates feedback service that create tickets on leap web.
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/integration/app_test_client.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index 3245e728..ff5af0a7 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -31,6 +31,7 @@ from twisted.internet import reactor, defer from twisted.internet.defer import succeed from twisted.web.resource import getChildForRequest # from twisted.web.server import Site as PixelatedSite +from pixelated.adapter.services.feedback_service import FeedbackService from pixelated.config.site import PixelatedSite from pixelated.adapter.mailstore import LeapMailStore @@ -74,13 +75,16 @@ class AppTestClient(object): self.account = IMAPAccount(self.ACCOUNT, self.soledad, account_ready_cb) yield account_ready_cb self.draft_service = DraftService(self.mail_store) + self.leap_session = mock() + self.feedback_service = FeedbackService(self.leap_session) self.mail_service = self._create_mail_service(self.mail_sender, self.mail_store, self.search_engine) mails = yield self.mail_service.all_mails() self.search_engine.index_mails(mails) self.resource = RootResource() - self.resource.initialize(self.keymanager, self.search_engine, self.mail_service, self.draft_service) + self.resource.initialize( + self.keymanager, self.search_engine, self.mail_service, self.draft_service, self.feedback_service) def _render(self, request, as_json=True): def get_str(_str): |