Skip to content

Commit 38dc583

Browse files
committed
updated tests
1 parent 46fd1be commit 38dc583

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests_async/oauth2/test_credentials_async.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ async def test_refresh_success(self, unused_utcnow, refresh_grant):
100100
self.REFRESH_TOKEN,
101101
self.CLIENT_ID,
102102
self.CLIENT_SECRET,
103-
None,
104-
None,
105-
True,
103+
scopes=None,
104+
rapt_token=None,
105+
enable_reauth_refresh=True,
106106
)
107107

108108
# Check that the credentials have the token and expiry
@@ -173,9 +173,9 @@ async def test_credentials_with_scopes_requested_refresh_success(
173173
self.REFRESH_TOKEN,
174174
self.CLIENT_ID,
175175
self.CLIENT_SECRET,
176-
scopes,
177-
"old_rapt_token",
178-
False,
176+
scopes=scopes,
177+
rapt_token="old_rapt_token",
178+
enable_reauth_refresh=False,
179179
)
180180

181181
# Check that the credentials have the token and expiry
@@ -236,9 +236,9 @@ async def test_credentials_with_scopes_returned_refresh_success(
236236
self.REFRESH_TOKEN,
237237
self.CLIENT_ID,
238238
self.CLIENT_SECRET,
239-
scopes,
240-
None,
241-
False,
239+
scopes=scopes,
240+
rapt_token=None,
241+
enable_reauth_refresh=False,
242242
)
243243

244244
# Check that the credentials have the token and expiry
@@ -307,9 +307,9 @@ async def test_credentials_with_scopes_refresh_failure_raises_refresh_error(
307307
self.REFRESH_TOKEN,
308308
self.CLIENT_ID,
309309
self.CLIENT_SECRET,
310-
scopes,
311-
None,
312-
False,
310+
scopes=scopes,
311+
rapt_token=None,
312+
enable_reauth_refresh=False,
313313
)
314314

315315
# Check that the credentials have the token and expiry

0 commit comments

Comments
 (0)