Skip to content

Commit

Permalink
an extra test will not harm anybody
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarcelo committed Aug 14, 2024
1 parent 382c845 commit 7313579
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/functional/test_alien.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ def test_alien_pydantic_model(client):
assert same_person.age != p.age


def test_alien_pydantic_methods(client):
reference = Person(name="Alice", age=30)

p = AlienDataClayObject(Person(name="Alice", age=30))
p.make_persistent()

assert p.model_dump() == reference.model_dump()
assert p.model_dump_json() == reference.model_dump_json()


def test_alien_getsetdelitem(client):
p = AlienDataClayObject({"a": 1, "b": 2})

Expand Down

0 comments on commit 7313579

Please sign in to comment.