* add tests for dynamodb max key size correct too-large error for ddb key * remove unnecessary requires_boto_gte decorator from ddb tests * remove literal emoji from ddb test * implement dynamodb key limits, WIP * correct direction of dynamodb range key length check * fix tests for dynamodb max key size check * catch ddb validation errors and rethrow properly * finish ddb key size limit fixes * fix linting * handle unicode in v2.7 tests * fix encoding issue in py2.7 for ddb * linting * Python2/3 compatability Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
58381cce8f
commit
d6384fcb35
9 changed files with 359 additions and 28 deletions
|
|
@ -230,7 +230,7 @@ def unix_time_millis(dt=None):
|
|||
|
||||
def gen_amz_crc32(response, headerdict=None):
|
||||
if not isinstance(response, bytes):
|
||||
response = response.encode()
|
||||
response = response.encode("utf-8")
|
||||
|
||||
crc = binascii.crc32(response)
|
||||
if six.PY2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue