summary refs log tree commit diff
path: root/tests/test_visibility.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-01-25 10:20:22 +0000
committerGitHub <noreply@github.com>2019-01-25 10:20:22 +0000
commit03b7df1af231a4d60dbff7e38708a9aad7fa0aac (patch)
tree62626873812dfce5f24b556b406b47a47159b214 /tests/test_visibility.py
parentMerge pull request #4448 from matrix-org/erikj/get_pdu_versions (diff)
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/require_fo... (diff)
downloadsynapse-03b7df1af231a4d60dbff7e38708a9aad7fa0aac.tar.xz
Merge pull request #4451 from matrix-org/erikj/require_format_version
Require event format version to parse or create events
Diffstat (limited to 'tests/test_visibility.py')
-rw-r--r--tests/test_visibility.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_visibility.py b/tests/test_visibility.py
index 2eea3b098b..82d63ce00e 100644
--- a/tests/test_visibility.py
+++ b/tests/test_visibility.py
@@ -17,6 +17,7 @@ import logging
 from twisted.internet import defer
 from twisted.internet.defer import succeed
 
+from synapse.api.constants import RoomVersions
 from synapse.events import FrozenEvent
 from synapse.visibility import filter_events_for_server
 
@@ -124,6 +125,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase):
     def inject_visibility(self, user_id, visibility):
         content = {"history_visibility": visibility}
         builder = self.event_builder_factory.new(
+            RoomVersions.V1,
             {
                 "type": "m.room.history_visibility",
                 "sender": user_id,
@@ -144,6 +146,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase):
         content = {"membership": membership}
         content.update(extra_content)
         builder = self.event_builder_factory.new(
+            RoomVersions.V1,
             {
                 "type": "m.room.member",
                 "sender": user_id,
@@ -165,6 +168,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase):
         if content is None:
             content = {"body": "testytest"}
         builder = self.event_builder_factory.new(
+            RoomVersions.V1,
             {
                 "type": "m.room.message",
                 "sender": user_id,