]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✅ Enable test case for duplicated headers in `test_tutorial/test_header_params/test_t...
authorAmogha Rao <63849274+Amogha-ark@users.noreply.github.com>
Sat, 20 Sep 2025 16:57:53 +0000 (22:27 +0530)
committerGitHub <noreply@github.com>
Sat, 20 Sep 2025 16:57:53 +0000 (18:57 +0200)
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>
tests/test_tutorial/test_header_params/test_tutorial003.py

index 0b58227f6e5160170a0c1530a9e3c49762a38d50..473b9612369b3f106df60c27f850a46de0e0d1c0 100644 (file)
@@ -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):