Browse Source

Update header model snapshots for omitted defaults

pull/15269/head
giria660 2 months ago
parent
commit
d5fc96dcfd
No known key found for this signature in database GPG Key ID: 3D8290B3CD372BA4
  1. 1
      tests/test_tutorial/test_header_param_models/test_tutorial001.py
  2. 2
      tests/test_tutorial/test_header_param_models/test_tutorial002.py
  3. 2
      tests/test_tutorial/test_header_param_models/test_tutorial003.py

1
tests/test_tutorial/test_header_param_models/test_tutorial001.py

@ -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",

2
tests/test_tutorial/test_header_param_models/test_tutorial002.py

@ -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"},
}
]
}

2
tests/test_tutorial/test_header_param_models/test_tutorial003.py

@ -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…
Cancel
Save