From 7f600c988e0a1626ca0e24a1d7a1fa7797771915 Mon Sep 17 00:00:00 2001 From: Giovane Date: Thu, 3 Sep 2015 18:37:03 -0300 Subject: #304 Adds PixelatedSite class to hold custom request configuration and remove foundation inline javascript. --- service/test/support/integration/app_test_client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'service/test/support/integration') diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index 51fbf483..e44a8c10 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -30,7 +30,9 @@ from mock import Mock from twisted.internet import reactor, defer from twisted.internet.defer import succeed from twisted.web.resource import getChildForRequest -from twisted.web.server import Site +# from twisted.web.server import Site as PixelatedSite +from pixelated.config.site import PixelatedSite + from pixelated.adapter.mailstore import LeapMailStore from pixelated.adapter.mailstore.searchable_mailstore import SearchableMailStore @@ -106,7 +108,7 @@ class AppTestClient(object): return d, request def listenTCP(self, port=4567, host='127.0.0.1'): - reactor.listenTCP(port, Site(self.resource), interface=host) + reactor.listenTCP(port, PixelatedSite(self.resource), interface=host) def run_on_a_thread(self, logfile='/tmp/app_test_client.log', port=4567, host='127.0.0.1'): def _start(): -- cgit v1.2.3