def test_encoding_payload_valid():
data = FancyEvent(
string_field='123456789',
uuid_field=uuid.UUID('72d9a041-f401-42b6-8556-72b3c00e43d8'),
)
encoded_data = encoding.encode(
model=data,
)
assert (json.loads(encoded_data)
== json.loads('{"string_field": "123456789", "uuid_field": "72d9a041-f401-42b6-8556-72b3c00e43d8"}'))
评论列表
文章目录