diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-04 12:24:20 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-04 12:24:20 +0000 |
commit | 525a218b2b072b24721c9c9efae42aae21388fc8 (patch) | |
tree | cff1cb05b2c12902ba7ac778ac40d3f79dbd3d1e /synapse/handlers/appservice.py | |
parent | Add stub ApplicationServiceApi and glue it with the handler. (diff) | |
download | synapse-525a218b2b072b24721c9c9efae42aae21388fc8.tar.xz |
Begin to add unit tests for appservice glue and regex testing.
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r-- | synapse/handlers/appservice.py | 8 |
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 |