This commit is contained in:
parent
6b6ff29b9a
commit
4ec1c4087c
2 changed files with 10 additions and 11 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue