diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-13 13:16:54 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-17 13:22:19 +0000 |
commit | 5d6bad1b3c325897db81f84ebfc67ca687d851c0 (patch) | |
tree | ceca894c8eeab05260595e09c8bbb031103252ea /tests/api | |
parent | Put staticmethods at module level (diff) | |
download | synapse-5d6bad1b3c325897db81f84ebfc67ca687d851c0.tar.xz |
Optimise state resolution
Diffstat (limited to 'tests/api')
-rw-r--r-- | tests/api/test_filtering.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/api/test_filtering.py b/tests/api/test_filtering.py index dcb6c5bc31..50e8607c14 100644 --- a/tests/api/test_filtering.py +++ b/tests/api/test_filtering.py @@ -25,10 +25,13 @@ from synapse.api.filtering import Filter from synapse.events import FrozenEvent user_localpart = "test_user" -# MockEvent = namedtuple("MockEvent", "sender type room_id") def MockEvent(**kwargs): + if "event_id" not in kwargs: + kwargs["event_id"] = "fake_event_id" + if "type" not in kwargs: + kwargs["type"] = "fake_type" return FrozenEvent(kwargs) |