Test string format UUID non strict fix

This commit is contained in:
Artur Maciag 2019-03-22 14:05:54 +00:00
parent beaa08a9c0
commit d0e163b5ba

View file

@ -50,7 +50,7 @@ class TestSchemaUnmarshal(object):
assert result == value
def test_string_valid_uuid_str(self):
def test_string_format_uuid_valid(self):
schema = Schema(SchemaType.STRING, schema_format=SchemaFormat.UUID)
value = str(uuid.uuid4())
@ -58,11 +58,11 @@ class TestSchemaUnmarshal(object):
assert result == uuid.UUID(value)
def test_string_valid_uuid(self):
def test_string_format_uuid_valid(self):
schema = Schema(SchemaType.STRING, schema_format=SchemaFormat.UUID)
value = uuid.uuid4()
result = schema.unmarshal(value)
result = schema.unmarshal(value, strict=False)
assert result == value