File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def _test_device_flow(
175
175
assertion = lambda : self .assertIn ('access_token' , result ),
176
176
skippable_errors = self .app .client .DEVICE_FLOW_RETRIABLE_ERRORS )
177
177
if "access_token" not in result :
178
- self .skip ("End user did not complete Device Flow in time" )
178
+ self .skipTest ("End user did not complete Device Flow in time" )
179
179
self .assertCacheWorksForUser (result , scope , username = None )
180
180
result ["access_token" ] = result ["refresh_token" ] = "************"
181
181
logger .info (
@@ -528,6 +528,8 @@ def _test_acquire_token_by_auth_code_flow(
528
528
<li><a href="$auth_uri">Sign In</a> or <a href="$abort_uri">Abort</a></li>
529
529
</ol></body></html>""" .format (id = self .id (), username_uri = username_uri ),
530
530
)
531
+ if auth_response is None :
532
+ self .skipTest ("Timed out. Did not have test settings in hand? Prepare and retry." )
531
533
self .assertIsNotNone (
532
534
auth_response .get ("code" ), "Error: {}, Detail: {}" .format (
533
535
auth_response .get ("error" ), auth_response ))
You can’t perform that action at this time.
0 commit comments