Skip to content

Commit fea2234

Browse files
committed
Remove client.get("/auth") login simulation call
1 parent 4e2a832 commit fea2234

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/test_middleware.py

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def my_entry_point():
8686
@pytest.mark.anyio
8787
async def test_middleware_reports_invalid_jwt(get_app):
8888
async with AsyncClient(app=get_app(with_ssr=False), base_url="http://test") as client:
89-
await client.get("/auth") # Simulate login
9089
# Insert a bad token instead
9190
badtoken = jwt.encode({"bad": "token"}, "badsecret", "HS256")
9291
client.cookies.update(dict(Authorization=f"Bearer: {badtoken}"))

0 commit comments

Comments
 (0)