Quick fix for test in python3.3

This commit is contained in:
Paul Craciunoiu 2016-01-08 17:46:55 -07:00
parent c9f43c885a
commit 7a6e85517a

View File

@ -818,12 +818,13 @@ def test_update_item_range_key_set():
},
)
returned_item = table.get_item(Key=item_key)['Item']
returned_item = dict((k, str(v) if isinstance(v, Decimal) else v)
for k, v in table.get_item(Key=item_key)['Item'].items())
dict(returned_item).should.equal({
'username': "johndoe2",
'forum_name': 'the-key',
'subject': '123',
'created': Decimal('4'),
'created': '4',
'mapfield': {'key': 'value'},
})