mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-16 12:57:44 -04:00
✅ 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user