Skip to content

Commit 57ad763

Browse files
committed
Change skip() to skipTest()
1 parent 1257f7b commit 57ad763

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_e2e.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)