Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Oct 6, 2023
1 parent b56fff7 commit f5424d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from kor import Bool, Number, Object, Selection, Text
from kor.serializer import dumps, loads
from kor._pydantic import PYDANTIC_MAJOR_VERSION


def test_serialize_deserialize_equals() -> None:
Expand Down Expand Up @@ -163,6 +164,7 @@ def test_nested_object_deserialization() -> None:
assert len(scheme.attributes[0].attributes) == 1


@pytest.mark.skipif(PYDANTIC_MAJOR_VERSION < 2, reason="Fails for pydantic v1")
def test_inconsistent_attribute_cannot_be_deserialized() -> None:
"""Test if inconsistent attributes cannot be deserialized."""

Expand Down

0 comments on commit f5424d0

Please sign in to comment.