Skip to content

Commit

Permalink
Make test better
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed May 23, 2023
1 parent 42539be commit 6e55f1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_user_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@ async def sign_in(email: str, password: str, user_context: Dict[str, Any]):
nonlocal signin_context_works
signin_context_works = True

orginal_request = req
user_context["_default"]["request"] = None

newReq = get_request_from_user_context(user_context)
assert newReq is None

user_context["_default"]["request"] = orginal_request

return await og_sign_in(email, password, user_context)

param.sign_in = sign_in
Expand Down

0 comments on commit 6e55f1e

Please sign in to comment.