diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-06-07 07:43:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 07:43:35 -0400 |
commit | 9dc3293e0b3a5cbf6fcc4a0cef7386b531190882 (patch) | |
tree | 97a293afac5f1b5e7649de833f2b6be5112b6e00 /tests/handlers/test_device.py | |
parent | Prevent breaking old sqlite's when media retention is enabled (#12977) (diff) | |
download | synapse-9dc3293e0b3a5cbf6fcc4a0cef7386b531190882.tar.xz |
Consolidate the logic of delete_device/delete_devices. (#12970)
By always using delete_devices and sometimes passing a list with a single device ID. Previously these methods had gotten out of sync with each other and it seems there's little benefit to the single-device variant.
Diffstat (limited to 'tests/handlers/test_device.py')
-rw-r--r-- | tests/handlers/test_device.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_device.py b/tests/handlers/test_device.py index 01ea7d2a42..b8b465d35b 100644 --- a/tests/handlers/test_device.py +++ b/tests/handlers/test_device.py @@ -154,7 +154,7 @@ class DeviceTestCase(unittest.HomeserverTestCase): self._record_users() # delete the device - self.get_success(self.handler.delete_device(user1, "abc")) + self.get_success(self.handler.delete_devices(user1, ["abc"])) # check the device was deleted self.get_failure(self.handler.get_device(user1, "abc"), NotFoundError) @@ -179,7 +179,7 @@ class DeviceTestCase(unittest.HomeserverTestCase): ) # delete the device - self.get_success(self.handler.delete_device(user1, "abc")) + self.get_success(self.handler.delete_devices(user1, ["abc"])) # check that the device_inbox was deleted res = self.get_success( |