]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✅ Re-enable test in `tests/test_tutorial/test_header_params/test_tutorial003.py`...
authorooknimm <68068775+ooknimm@users.noreply.github.com>
Fri, 12 Jan 2024 14:52:00 +0000 (23:52 +0900)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 14:52:00 +0000 (15:52 +0100)
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 268df7a3e9a808045b6f9a5065d61a1a5791ec97..6f7de8ed41acdf75fae558c7f1e36e1f5ab6062a 100644 (file)
@@ -12,8 +12,12 @@ client = TestClient(app)
     [
         ("/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):