Skip to content

Commit

Permalink
fix: Failing django2x website tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu committed Sep 7, 2023
1 parent 74f2ce4 commit 619db35
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/frontendIntegration/django2x/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,11 @@ def login_2_18(request: HttpRequest):
{"uid": user_id, "ate": get_timestamp_ms() + 3600000, "up": payload}
)

return JsonResponse(
{},
headers={
"st-access-token": legacy_access_token,
"st-refresh-token": legacy_refresh_token,
"front-token": b64encode(front_token.encode()).decode(),
},
)
res = JsonResponse({})
res["st-access-token"] = legacy_access_token
res["st-refresh-token"] = legacy_refresh_token
res["front-token"] = b64encode(front_token.encode()).decode()
return res
else:
return send_options_api_response()

Expand Down

0 comments on commit 619db35

Please sign in to comment.