Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix tests for refresh_token removal
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Nov 1, 2017
1 parent 356bcaf commit 02237ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/storage/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def test_user_delete_access_tokens(self):

# now delete some
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
user = yield self.store.get_user_by_access_token(self.tokens[1])
Expand All @@ -97,8 +98,7 @@ def test_user_delete_access_tokens(self):
self.assertEqual(self.user_id, user["name"])

# now delete the rest
yield self.store.user_delete_access_tokens(
self.user_id, delete_refresh_tokens=True)
yield self.store.user_delete_access_tokens(self.user_id)

user = yield self.store.get_user_by_access_token(self.tokens[0])
self.assertIsNone(user,
Expand Down

0 comments on commit 02237ce

Please sign in to comment.