File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 41
41
42
42
respx_mock = respx .MockRouter
43
43
44
+ access_token_validated : bool = False
45
+
44
46
45
47
@fixture (scope = "function" )
46
48
async def fastapi_client ():
@@ -145,7 +147,9 @@ async def valid_access_token( # pylint: disable=unused-argument
145
147
config : ProviderConfigForClient ,
146
148
user_context : Optional [Dict [str , Any ]],
147
149
):
150
+ global access_token_validated
148
151
if access_token == "accesstoken" :
152
+ access_token_validated = True
149
153
return
150
154
raise Exception ("Unexpected access token" )
151
155
@@ -262,4 +266,5 @@ async def test_signinup_works_when_validate_access_token_does_not_throw(
262
266
)
263
267
264
268
assert res .status_code == 200
269
+ assert access_token_validated is True
265
270
assert res .json ()["status" ] == "OK"
You can’t perform that action at this time.
0 commit comments