Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
  • Loading branch information
provinzkraut committed Sep 16, 2023
1 parent 65737cd commit fb271e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/test_response/test_base_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
]

0 comments on commit fb271e7

Please sign in to comment.