mirror of https://github.com/tiangolo/fastapi.git
update test
This commit is contained in:
parent
26ca9444aa
commit
cf424613b3
|
|
@ -200,7 +200,7 @@ def test_post_broken_body(client: TestClient):
|
||||||
headers={"content-type": "application/json"},
|
headers={"content-type": "application/json"},
|
||||||
content="{some broken json}",
|
content="{some broken json}",
|
||||||
)
|
)
|
||||||
assert response.status_code == 422, response.text
|
assert response.status_code == 400, response.text
|
||||||
assert response.json() == IsDict(
|
assert response.json() == IsDict(
|
||||||
{
|
{
|
||||||
"detail": [
|
"detail": [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue