Skip to content

Commit c74ac4a

Browse files
author
touale
committed
test: use AUTH_COOKIE_NAME constant in auth test
1 parent 9f5df86 commit c74ac4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/driver/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def test_oauth_callback_success(self):
183183
res = await oauth_callback(code="abc")
184184
assert res.status_code == status.HTTP_302_FOUND
185185
assert res.headers["location"] == DOCS_URL
186-
assert "token=" in res.headers.get("set-cookie", "")
186+
assert f"{AUTH_COOKIE_NAME}=" in res.headers.get("set-cookie", "")
187187

188188

189189
# =========================================================

0 commit comments

Comments
 (0)