Skip to content

Commit

Permalink
added assertRaises
Browse files Browse the repository at this point in the history
  • Loading branch information
azimovMichael committed Apr 24, 2022
1 parent 0450728 commit 14a2094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_request.py
Expand Up @@ -200,8 +200,10 @@ def test_request_scope_raises_exception_when_no_asgi():
async def get(request):
return request.scope

_, response = app.test_client.get("/")
request, response = app.test_client.get("/")
assert response.status == 500
with pytest.raises(NotImplementedError):
_ = request.scope


@pytest.mark.asyncio
Expand Down

0 comments on commit 14a2094

Please sign in to comment.