mirror of https://github.com/tiangolo/fastapi.git
✅ Enable test case for duplicated headers in `test_tutorial/test_header_params/test_tutorial003.py` (#13864)
Co-authored-by: amogha-rao <amogha.rao@cloudera.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
d2f6b92a83
commit
5fef4d199b
|
|
@ -29,8 +29,12 @@ def get_client(request: pytest.FixtureRequest):
|
|||
[
|
||||
("/items", None, 200, {"X-Token values": None}),
|
||||
("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
|
||||
# TODO: fix this, is it a bug?
|
||||
# ("/items", [("x-token", "foo"), ("x-token", "bar")], 200, {"X-Token values": ["foo", "bar"]}),
|
||||
(
|
||||
"/items",
|
||||
[("x-token", "foo"), ("x-token", "bar")],
|
||||
200,
|
||||
{"X-Token values": ["foo", "bar"]},
|
||||
),
|
||||
],
|
||||
)
|
||||
def test(path, headers, expected_status, expected_response, client: TestClient):
|
||||
|
|
|
|||
Loading…
Reference in New Issue