summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-04 12:24:20 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-04 12:24:20 +0000
commit525a218b2b072b24721c9c9efae42aae21388fc8 (patch)
treecff1cb05b2c12902ba7ac778ac40d3f79dbd3d1e /synapse/handlers
parentAdd stub ApplicationServiceApi and glue it with the handler. (diff)
downloadsynapse-525a218b2b072b24721c9c9efae42aae21388fc8.tar.xz
Begin to add unit tests for appservice glue and regex testing.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/appservice.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index 9cdeaa2d94..3188c60f3d 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -26,10 +26,14 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-class ApplicationServicesHandler(BaseHandler):
+# NB: Purposefully not inheriting BaseHandler since that contains way too much
+# setup code which this handler does not need or use. This makes testing a lot
+# easier.
+class ApplicationServicesHandler(object):
 
     def __init__(self, hs):
-        super(ApplicationServicesHandler, self).__init__(hs)
+        self.store = hs.get_datastore()
+        self.hs = hs
         self.appservice_api = ApplicationServiceApi(hs)
 
     @defer.inlineCallbacks