Skip to content

Commit

Permalink
Improve test case commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Aug 2, 2024
1 parent ec9b870 commit 2711420
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/support/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ def lab_callback(self, request: Request) -> Response:
fixed now (similar strategy of following redirects manually and
grabbing the cookie at each intermediate step), but I don't
understand how to test it.
The actual chain is ``/user/username/lab`` to
``/hub/api/oauth2/authorize`` to ``/user/username/oauth_callback``
and it here that the cookie is actually set.
"""
user = self.get_user(request.headers["Authorization"])
assert str(request.url).endswith(f"/user/{user}/callback")
Expand Down

0 comments on commit 2711420

Please sign in to comment.