We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
client.get("/auth")
1 parent 4e2a832 commit fea2234Copy full SHA for fea2234
tests/test_middleware.py
@@ -86,7 +86,6 @@ def my_entry_point():
86
@pytest.mark.anyio
87
async def test_middleware_reports_invalid_jwt(get_app):
88
async with AsyncClient(app=get_app(with_ssr=False), base_url="http://test") as client:
89
- await client.get("/auth") # Simulate login
90
# Insert a bad token instead
91
badtoken = jwt.encode({"bad": "token"}, "badsecret", "HS256")
92
client.cookies.update(dict(Authorization=f"Bearer: {badtoken}"))
0 commit comments