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(
175175 assertion = lambda : self .assertIn ('access_token' , result ),
176176 skippable_errors = self .app .client .DEVICE_FLOW_RETRIABLE_ERRORS )
177177 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" )
179179 self .assertCacheWorksForUser (result , scope , username = None )
180180 result ["access_token" ] = result ["refresh_token" ] = "************"
181181 logger .info (
@@ -528,6 +528,8 @@ def _test_acquire_token_by_auth_code_flow(
528528 <li><a href="$auth_uri">Sign In</a> or <a href="$abort_uri">Abort</a></li>
529529 </ol></body></html>""" .format (id = self .id (), username_uri = username_uri ),
530530 )
531+ if auth_response is None :
532+ self .skipTest ("Timed out. Did not have test settings in hand? Prepare and retry." )
531533 self .assertIsNotNone (
532534 auth_response .get ("code" ), "Error: {}, Detail: {}" .format (
533535 auth_response .get ("error" ), auth_response ))
You can’t perform that action at this time.
0 commit comments