summary refs log tree commit diff
path: root/tests/handlers/test_appservice.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-04 15:21:03 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-04 15:21:03 +0000
commit89f2e8fbdf7965d02426ef17ca6a9490219a2ec4 (patch)
tree34c91f505f52cda2517509d093691af67b72d9f5 /tests/handlers/test_appservice.py
parentBegin to add unit tests for appservice glue and regex testing. (diff)
downloadsynapse-89f2e8fbdf7965d02426ef17ca6a9490219a2ec4.tar.xz
Fix bug in store defer. Add more unit tests.
Diffstat (limited to 'tests/handlers/test_appservice.py')
-rw-r--r--tests/handlers/test_appservice.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/handlers/test_appservice.py b/tests/handlers/test_appservice.py

index 9c464e7fbc..1daa314f20 100644 --- a/tests/handlers/test_appservice.py +++ b/tests/handlers/test_appservice.py
@@ -18,12 +18,8 @@ from .. import unittest from synapse.handlers.appservice import ApplicationServicesHandler -from collections import namedtuple from mock import Mock -# TODO: Should this be a more general thing? tests/api/test_filtering.py uses it -MockEvent = namedtuple("MockEvent", "sender type room_id") - class AppServiceHandlerTestCase(unittest.TestCase): """ Tests the ApplicationServicesHandler. """ @@ -51,7 +47,7 @@ class AppServiceHandlerTestCase(unittest.TestCase): self.mock_store.get_app_services = Mock(return_value=services) - event = MockEvent( + event = Mock( sender="@someone:anywhere", type="m.room.message", room_id="!foo:bar"