summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-05 20:27:14 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-05 20:29:52 +0100
commit4cd1448d0e16d19a1f255ed6746a7372221e84cd (patch)
tree1f11f6c6d8b5287dc343ead9503ed787aa8da4e7 /tests/rest
parentEnsure that event.redacts is the proper type before handling it (#8457) (diff)
downloadsynapse-4cd1448d0e16d19a1f255ed6746a7372221e84cd.tar.xz
Fix third-party event modules for `check_visibility_can_be_modified` check
PR #8292 tried to maintain backwards compat with modules which don't provide a
`check_visibility_can_be_modified` method, but the tests weren't being run,
and the check didn't work.
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/client/test_third_party_rules.py (renamed from tests/rest/client/third_party_rules.py)2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/client/third_party_rules.py b/tests/rest/client/test_third_party_rules.py
index 715e87de08..7b322f526c 100644
--- a/tests/rest/client/third_party_rules.py
+++ b/tests/rest/client/test_third_party_rules.py
@@ -49,7 +49,7 @@ class ThirdPartyRulesTestCase(unittest.HomeserverTestCase):
     def make_homeserver(self, reactor, clock):
         config = self.default_config()
         config["third_party_event_rules"] = {
-            "module": "tests.rest.client.third_party_rules.ThirdPartyRulesTestModule",
+            "module": __name__ + ".ThirdPartyRulesTestModule",
             "config": {},
         }