mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Fix bug in store defer. Add more unit tests.
This commit is contained in:
parent
525a218b2b
commit
89f2e8fbdf
4 changed files with 207 additions and 9 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue