Skip to content

Commit

Permalink
update model name
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Nov 13, 2023
1 parent d8d3262 commit b819412
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit_tests/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ def test_decode_events(data: Any, expected: Any) -> None:
assert load_events(data) == expected


class TestEnum(Enum):
class SimpleEnum(Enum):
a = "a"
b = "b"


class TestModel(BaseModel):
class SimpleModel(BaseModel):
x: int
y: TestEnum
y: SimpleEnum
z: uuid.UUID
dt: datetime.datetime
d: datetime.date
Expand All @@ -148,11 +148,11 @@ class TestModel(BaseModel):
(datetime.date(2020, 1, 1), "2020-01-01"),
(datetime.time(0, 0, 0), "00:00:00"),
(datetime.time(0, 0, 0, 1), "00:00:00.000001"),
(TestEnum.a, "a"),
(SimpleEnum.a, "a"),
(
TestModel(
SimpleModel(
x=1,
y=TestEnum.a,
y=SimpleEnum.a,
z=uuid.UUID(int=1),
dt=datetime.datetime(2020, 1, 1),
d=datetime.date(2020, 1, 1),
Expand Down

0 comments on commit b819412

Please sign in to comment.