summary refs log tree commit diff
path: root/tests/push/test_email.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2023-02-09 21:26:21 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2023-02-09 21:29:59 +0000
commitb3f791ec3b7c321eabd34aeaa1d5dddc238f94ea (patch)
treebc7866ca8504c943d2a19ba486314f0f5404bb47 /tests/push/test_email.py
parentAdd support for devenv developer environments (diff)
downloadsynapse-b3f791ec3b7c321eabd34aeaa1d5dddc238f94ea.tar.xz
Rename delete_threepid -> delete_and_unbind_threepid
To make it more obvious that this method will also
attempt to unbind threepids that are deleted through it.
Diffstat (limited to 'tests/push/test_email.py')
-rw-r--r--tests/push/test_email.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/push/test_email.py b/tests/push/test_email.py
index ab8bb417e7..5faf66e0ff 100644
--- a/tests/push/test_email.py
+++ b/tests/push/test_email.py
@@ -367,10 +367,8 @@ class EmailPusherTests(HomeserverTestCase):
 
         # disassociate the user's email address
         self.get_success(
-            self.auth_handler.delete_threepid(
-                user_id=self.user_id,
-                medium="email",
-                address="a@example.com",
+            self.auth_handler.delete_and_unbind_threepid(
+                user_id=self.user_id, medium="email", address="a@example.com"
             )
         )