Skip to content

Commit d0e163b

Browse files
committed
Test string format UUID non strict fix
1 parent beaa08a commit d0e163b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/schema/test_schemas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ def test_string_valid(self):
5050

5151
assert result == value
5252

53-
def test_string_valid_uuid_str(self):
53+
def test_string_format_uuid_valid(self):
5454
schema = Schema(SchemaType.STRING, schema_format=SchemaFormat.UUID)
5555
value = str(uuid.uuid4())
5656

5757
result = schema.unmarshal(value)
5858

5959
assert result == uuid.UUID(value)
6060

61-
def test_string_valid_uuid(self):
61+
def test_string_format_uuid_valid(self):
6262
schema = Schema(SchemaType.STRING, schema_format=SchemaFormat.UUID)
6363
value = uuid.uuid4()
6464

65-
result = schema.unmarshal(value)
65+
result = schema.unmarshal(value, strict=False)
6666

6767
assert result == value
6868

0 commit comments

Comments
 (0)