MCPcopy Create free account
hub / github.com/aws/aws-cli / test_dict_compression

Function test_dict_compression

tests/unit/botocore/test_compress.py:280–286  ·  view source on GitHub ↗
(operation_model, expected_body)

Source from the content-addressed store, hash-verified

278 sys.version_info < (3, 8), reason='requires python3.8 or higher'
279)
280def test_dict_compression(operation_model, expected_body):
281 request_dict = _request_dict({'foo': 'bar'})
282 maybe_compress_request(
283 COMPRESSION_CONFIG_1_BYTE, request_dict, operation_model
284 )
285 body = request_dict['body']
286 assert body == expected_body
287
288
289@pytest.mark.parametrize('body', [1, object(), True, 1.0])

Callers

nothing calls this directly

Calls 2

maybe_compress_requestFunction · 0.90
_request_dictFunction · 0.85

Tested by

no test coverage detected