Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/httpx
/ test_encoded
Function
test_encoded
tests/test_utils.py:25–28 ·
view source on GitHub ↗
(encoding)
Source
from the content-addressed store, hash-verified
23
),
24
)
25
def
test_encoded(encoding):
26
content =
'{"abc": 123}'
.encode(encoding)
27
response = httpx.Response(200, content=content)
28
assert response.json() == {
"abc"
: 123}
29
30
31
def
test_bad_utf_like_encoding():
Callers
nothing calls this directly
Calls
1
json
Method · 0.95
Tested by
no test coverage detected