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

Function test_compress_force_with_negative_ratio

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

Source from the content-addressed store, hash-verified

54
55
56def test_compress_force_with_negative_ratio(httpbin_both):
57 r = http(
58 '--compress',
59 '--compress',
60 httpbin_both + '/post',
61 'foo=bar',
62 )
63 assert HTTP_OK in r
64 assert r.json['headers']['Content-Encoding'] == 'deflate'
65 assert_decompressed_equal(r.json['data'], '{"foo": "bar"}')
66
67
68def test_compress_json(httpbin_both):

Callers

nothing calls this directly

Calls 2

httpFunction · 0.85

Tested by

no test coverage detected