From fb271e74f17adf92147befb7ffed2ed56afd1fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:10:30 +0200 Subject: [PATCH] fix a test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com> --- tests/unit/test_response/test_base_response.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_response/test_base_response.py b/tests/unit/test_response/test_base_response.py index 4ee9bafb8f..ec3e1351e8 100644 --- a/tests/unit/test_response/test_base_response.py +++ b/tests/unit/test_response/test_base_response.py @@ -210,4 +210,8 @@ def test_head_response_doesnt_support_content() -> None: def test_asgi_response_encoded_headers() -> None: response = ASGIResponse(encoded_headers=[(b"foo", b"bar")]) - assert response.encode_headers() == [(b"foo", b"bar")] + assert response.encode_headers() == [ + (b"foo", b"bar"), + (b"content-type", b"application/json"), + (b"content-length", b"0"), + ]