summary refs log tree commit diff
path: root/tests/rulecheck/test_domainrulecheck.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-24 17:23:46 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-24 17:23:46 +0000
commit3a59bd253ed5a6e4ccb2094492111410a7352d6e (patch)
treedf01ec670f5970362c4d339b37729c0a7ac59cd1 /tests/rulecheck/test_domainrulecheck.py
parentFix coverage in sytest and use plugins for buildkite (#5922) (diff)
downloadsynapse-3a59bd253ed5a6e4ccb2094492111410a7352d6e.tar.xz
Revert "Use the v2 lookup API for 3PID invites (#5897)"
This reverts commit 978f263e7c5d1eb440efaf07abc5009408ade25d, reversing
changes made to 4f6ee99818d9c338944a10585d0aea4c7349d456.
Diffstat (limited to '')
-rw-r--r--tests/rulecheck/test_domainrulecheck.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/rulecheck/test_domainrulecheck.py b/tests/rulecheck/test_domainrulecheck.py
index 145d6cba5b..1accc70dc9 100644
--- a/tests/rulecheck/test_domainrulecheck.py
+++ b/tests/rulecheck/test_domainrulecheck.py
@@ -15,8 +15,6 @@
 
 
 import json
-from mock import Mock
-from twisted.internet import defer
 
 import synapse.rest.admin
 from synapse.config._base import ConfigError
@@ -289,9 +287,6 @@ class DomainRuleCheckerRoomTestCase(unittest.HomeserverTestCase):
     def test_cannot_3pid_invite(self):
         """Test that unbound 3pid invites get rejected.
         """
-        self.hs.get_room_member_handler().lookup_3pid = Mock()
-        self.hs.get_room_member_handler().lookup_3pid.return_value = defer.succeed(None)
-
         channel = self._create_room(self.admin_access_token)
         assert channel.result["code"] == b"200", channel.result