summary refs log tree commit diff
path: root/tests/test_visibility.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-03-10 12:08:17 +0000
committerDavid Robertson <davidr@element.io>2023-03-10 12:08:17 +0000
commit85a98b1023a330c4c6179cc5c5660fbb54d5bb51 (patch)
tree0bcde66d5ced2f6222db7963bd764fbe8dd4df5f /tests/test_visibility.py
parentRequire explicit boolean options from callers (diff)
downloadsynapse-85a98b1023a330c4c6179cc5c5660fbb54d5bb51.tar.xz
Add explicit option for partial state rooms
Diffstat (limited to 'tests/test_visibility.py')
-rw-r--r--tests/test_visibility.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_visibility.py b/tests/test_visibility.py

index 569a01a417..f758232d08 100644 --- a/tests/test_visibility.py +++ b/tests/test_visibility.py
@@ -69,6 +69,7 @@ class FilterEventsForServerTestCase(unittest.HomeserverTestCase): events_to_filter, redact=True, filter_out_erased_senders=True, + filter_out_partial_state_rooms=True, ) ) @@ -96,6 +97,7 @@ class FilterEventsForServerTestCase(unittest.HomeserverTestCase): [outlier], redact=True, filter_out_erased_senders=True, + filter_out_partial_state_rooms=True, ) ), [outlier], @@ -112,6 +114,7 @@ class FilterEventsForServerTestCase(unittest.HomeserverTestCase): [outlier, evt], redact=True, filter_out_erased_senders=True, + filter_out_partial_state_rooms=True, ) ) self.assertEqual(len(filtered), 2, f"expected 2 results, got: {filtered}") @@ -129,6 +132,7 @@ class FilterEventsForServerTestCase(unittest.HomeserverTestCase): [outlier, evt], redact=True, filter_out_erased_senders=True, + filter_out_partial_state_rooms=True, ) ) self.assertEqual(filtered[0], outlier) @@ -169,6 +173,7 @@ class FilterEventsForServerTestCase(unittest.HomeserverTestCase): events_to_filter, redact=True, filter_out_erased_senders=True, + filter_out_partial_state_rooms=True, ) )