Browse Source

Re-enable test in `tests/test_tutorial/test_header_params/test_tutorial003.py` after fix in Starlette (#10904)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pull/10784/head
ooknimm 1 year ago
committed by GitHub
parent
commit
be0bd34446
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tests/test_tutorial/test_header_params/test_tutorial003.py

8
tests/test_tutorial/test_header_params/test_tutorial003.py

@ -12,8 +12,12 @@ client = TestClient(app)
[ [
("/items", None, 200, {"X-Token values": None}), ("/items", None, 200, {"X-Token values": None}),
("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}), ("/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): def test(path, headers, expected_status, expected_response):

Loading…
Cancel
Save