Skip to content

Commit bf718b1

Browse files
committed
Adjusting tests as per recent changes
1 parent 17079f0 commit bf718b1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_e2e.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ def _get_app_and_auth_code(
3131
client_id, client_secret, authority=authority, http_client=MinimalHttpClient())
3232
redirect_uri = "http://localhost:%d" % port
3333
exit_hint = "Visit http://localhost:{p}?code=exit to abort".format(p=port)
34-
ac = obtain_auth_code(port, auth_uri="http://localhost:{p}?{q}".format(p=port, q=urlencode({
35-
"text": "Open this link to sign in. You may use incognito window",
36-
"link": app.get_authorization_request_url(
37-
scopes, redirect_uri=redirect_uri, **kwargs),
38-
"exit_hint": exit_hint,
39-
})))
34+
ac = obtain_auth_code(port, auth_uri=app.get_authorization_request_url(
35+
scopes, redirect_uri=redirect_uri),
36+
text="Open this link to sign in. You may use incognito window", **kwargs)
4037
logger.warning(exit_hint)
4138
assert ac is not None
4239
return (app, ac, redirect_uri)

0 commit comments

Comments
 (0)