mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-23 18:56:10 +00:00
Fix tests for refresh_token removal
This commit is contained in:
parent
356bcafc44
commit
02237ce725
@ -86,7 +86,8 @@ class RegistrationStoreTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
# now delete some
|
# now delete some
|
||||||
yield self.store.user_delete_access_tokens(
|
yield self.store.user_delete_access_tokens(
|
||||||
self.user_id, device_id=self.device_id, delete_refresh_tokens=True)
|
self.user_id, device_id=self.device_id,
|
||||||
|
)
|
||||||
|
|
||||||
# check they were deleted
|
# check they were deleted
|
||||||
user = yield self.store.get_user_by_access_token(self.tokens[1])
|
user = yield self.store.get_user_by_access_token(self.tokens[1])
|
||||||
@ -97,8 +98,7 @@ class RegistrationStoreTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(self.user_id, user["name"])
|
self.assertEqual(self.user_id, user["name"])
|
||||||
|
|
||||||
# now delete the rest
|
# now delete the rest
|
||||||
yield self.store.user_delete_access_tokens(
|
yield self.store.user_delete_access_tokens(self.user_id)
|
||||||
self.user_id, delete_refresh_tokens=True)
|
|
||||||
|
|
||||||
user = yield self.store.get_user_by_access_token(self.tokens[0])
|
user = yield self.store.get_user_by_access_token(self.tokens[0])
|
||||||
self.assertIsNone(user,
|
self.assertIsNone(user,
|
||||||
|
Loading…
Reference in New Issue
Block a user