summaryrefslogtreecommitdiff
path: root/service/test/support/integration
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-03 18:37:03 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-03 18:39:47 -0300
commit7f600c988e0a1626ca0e24a1d7a1fa7797771915 (patch)
treed3d5b5a8cdc9a480ab289c92335cbb239b0d43ae /service/test/support/integration
parent19cda9ca7aa1aca18f61ebf659fc490f8ad4c15a (diff)
#304 Adds PixelatedSite class to hold custom request configuration and remove foundation inline javascript.
Diffstat (limited to 'service/test/support/integration')
-rw-r--r--service/test/support/integration/app_test_client.py6
1 files changed, 4 insertions, 2 deletions
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():