mirror of https://github.com/tiangolo/fastapi.git
Update header model snapshots for omitted defaults
This commit is contained in:
parent
57d36dbef2
commit
d5fc96dcfd
|
|
@ -65,7 +65,6 @@ def test_header_param_model_invalid(client: TestClient):
|
|||
"loc": ["header", "save_data"],
|
||||
"msg": "Field required",
|
||||
"input": {
|
||||
"x_tag": [],
|
||||
"host": "testserver",
|
||||
"accept": "*/*",
|
||||
"accept-encoding": "gzip, deflate",
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ def test_header_param_model_invalid(client: TestClient):
|
|||
"type": "missing",
|
||||
"loc": ["header", "save_data"],
|
||||
"msg": "Field required",
|
||||
"input": {"x_tag": [], "host": "testserver"},
|
||||
"input": {"host": "testserver"},
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ def test_header_param_model_no_underscore(client: TestClient):
|
|||
"input": {
|
||||
"host": "testserver",
|
||||
"traceparent": "123",
|
||||
"x_tag": [],
|
||||
"accept": "*/*",
|
||||
"accept-encoding": "gzip, deflate",
|
||||
"connection": "keep-alive",
|
||||
|
|
@ -102,7 +101,6 @@ def test_header_param_model_invalid(client: TestClient):
|
|||
"loc": ["header", "save_data"],
|
||||
"msg": "Field required",
|
||||
"input": {
|
||||
"x_tag": [],
|
||||
"host": "testserver",
|
||||
"accept": "*/*",
|
||||
"accept-encoding": "gzip, deflate",
|
||||
|
|
|
|||
Loading…
Reference in New Issue