please ruff
All checks were successful
publish-latest / docker (push) Successful in 8s

This commit is contained in:
Johan Lundberg 2026-07-05 00:10:59 +02:00
parent 6b6ff29b9a
commit 4ec1c4087c
2 changed files with 10 additions and 11 deletions

View file

@ -91,9 +91,7 @@ class TestCSRFValidation:
app = _make_app()
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://testserver") as client:
token, _ = await _get_token_and_cookies(client)
response = await client.post(
"/echo", data={"csrf_token": token, "payload": "hello"}
)
response = await client.post("/echo", data={"csrf_token": token, "payload": "hello"})
assert response.status_code == 200
assert response.text == "hello"