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

Function test_bad_utf_like_encoding

tests/test_utils.py:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_bad_utf_like_encoding():
32 content = b"\x00\x00\x00\x00"
33 response = httpx.Response(200, content=content)
34 with pytest.raises(json.decoder.JSONDecodeError):
35 response.json()
36
37
38@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.95

Tested by

no test coverage detected