Skip to content

Commit

Permalink
!= to is not / == to is
Browse files Browse the repository at this point in the history
  • Loading branch information
azimovMichael committed Apr 18, 2022
1 parent 584b9b7 commit 7d32174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_request.py
Expand Up @@ -201,7 +201,7 @@ async def get(request):
return response.empty()

request, _ = app.test_client.get("/")
assert request.scope == None
assert request.scope is None


@pytest.mark.asyncio
Expand All @@ -211,6 +211,7 @@ async def get(request):
return response.empty()

request, _ = await app.asgi_client.get("/")
assert request.scope != None

assert request.scope is not None
assert request.scope["method"].lower() == "get"
assert request.scope["path"].lower() == "/"

0 comments on commit 7d32174

Please sign in to comment.