summary refs log tree commit diff
path: root/tests/rest/client/test_account.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2022-02-23 12:35:53 +0000
committerGitHub <noreply@github.com>2022-02-23 12:35:53 +0000
commit5b2b36809fc3543ed0c9ec587398a09f2e176265 (patch)
treeefed3f9982193ddced3e42f11b4b144d62df2515 /tests/rest/client/test_account.py
parentRemove `HomeServer.get_datastore()` (#12031) (diff)
downloadsynapse-5b2b36809fc3543ed0c9ec587398a09f2e176265.tar.xz
Remove more references to `get_datastore` (#12067)
These have snuck in since #12031 was started.

Also a couple of other cleanups while we're in the area.
Diffstat (limited to 'tests/rest/client/test_account.py')
-rw-r--r--tests/rest/client/test_account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/client/test_account.py b/tests/rest/client/test_account.py
index aa019c9a44..008d635b70 100644
--- a/tests/rest/client/test_account.py
+++ b/tests/rest/client/test_account.py
@@ -1119,7 +1119,9 @@ class AccountStatusTestCase(unittest.HomeserverTestCase):
         """Tests that the account status endpoint correctly reports a deactivated user."""
         user = self.register_user("someuser", "password")
         self.get_success(
-            self.hs.get_datastore().set_user_deactivated_status(user, deactivated=True)
+            self.hs.get_datastores().main.set_user_deactivated_status(
+                user, deactivated=True
+            )
         )
 
         self._test_status(