From d0e163b5baf435fa591b79f77185b6e5b4076d8b Mon Sep 17 00:00:00 2001 From: Artur Maciag Date: Fri, 22 Mar 2019 14:05:54 +0000 Subject: [PATCH] Test string format UUID non strict fix --- tests/unit/schema/test_schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/schema/test_schemas.py b/tests/unit/schema/test_schemas.py index 6bedd65..6440738 100644 --- a/tests/unit/schema/test_schemas.py +++ b/tests/unit/schema/test_schemas.py @@ -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