MCPcopy
hub / github.com/encode/httpx / test_decoders_empty_cases

Function test_decoders_empty_cases

tests/test_decoders.py:216–219  ·  view source on GitHub ↗
(header_value)

Source from the content-addressed store, hash-verified

214
215@pytest.mark.parametrize("header_value", (b"deflate", b"gzip", b"br", b"identity"))
216def test_decoders_empty_cases(header_value):
217 headers = [(b"Content-Encoding", header_value)]
218 response = httpx.Response(content=b"", status_code=200, headers=headers)
219 assert response.read() == b""
220
221
222@pytest.mark.parametrize("header_value", (b"deflate", b"gzip", b"br"))

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected