Browse Source

Update tests/test_openapi_schema_type.py

Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
pull/13639/head
sammasak 1 week ago
committed by GitHub
parent
commit
ba1a39cdb4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      tests/test_openapi_schema_type.py

2
tests/test_openapi_schema_type.py

@ -21,7 +21,7 @@ def test_allowed_schema_type(
assert schema.type == type_value
def test_invlid_type_value() -> None:
def test_invalid_type_value() -> None:
"""Test that Schema raises ValueError for invalid type values."""
with pytest.raises(ValueError, match="2 validation errors for Schema"):
Schema(type=True) # type: ignore[arg-type]

Loading…
Cancel
Save