Skip to content

Commit

Permalink
Replace pydantic dict() to model_dump() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klpanagi committed Feb 13, 2024
1 parent 7f80880 commit 93b6347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_msgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TestPubSubMessage(PubSubMessage):

_msg = TestPubSubMessage()
_msg.b = TestObject(c=2, d=3)
self.assertEqual(_msg.dict(), _d)
self.assertEqual(_msg.model_dump(), _d)

def test_nested_message_from_dict(self):
_d = {"a": 1, "b": {"c": 2, "d": 3}}
Expand Down

0 comments on commit 93b6347

Please sign in to comment.