MCPcopy
hub / github.com/httpie/cli / test_compress_json

Function test_compress_json

tests/test_compress.py:68–78  ·  view source on GitHub ↗
(httpbin_both)

Source from the content-addressed store, hash-verified

66
67
68def test_compress_json(httpbin_both):
69 r = http(
70 '--compress',
71 '--compress',
72 httpbin_both + '/post',
73 'foo=bar',
74 )
75 assert HTTP_OK in r
76 assert r.json['headers']['Content-Encoding'] == 'deflate'
77 assert_decompressed_equal(r.json['data'], '{"foo": "bar"}')
78 assert r.json['json'] is None
79
80
81def test_compress_form(httpbin_both):

Callers

nothing calls this directly

Calls 2

httpFunction · 0.85

Tested by

no test coverage detected