From 85a98b1023a330c4c6179cc5c5660fbb54d5bb51 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Fri, 10 Mar 2023 12:08:17 +0000 Subject: Add explicit option for partial state rooms --- tests/test_visibility.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_visibility.py') 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, ) ) -- cgit 1.5.1