(operation_model, expected_body)
| 278 | sys.version_info < (3, 8), reason='requires python3.8 or higher' |
| 279 | ) |
| 280 | def 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]) |
nothing calls this directly
no test coverage detected