From 93b634772bee189c56161419f6ccf0af9fa6ca2c Mon Sep 17 00:00:00 2001 From: Konstantinos Panayiotou Date: Tue, 13 Feb 2024 22:21:12 +0200 Subject: [PATCH] Replace pydantic dict() to model_dump() in tests --- tests/test_msgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_msgs.py b/tests/test_msgs.py index c30ad25..ded0597 100644 --- a/tests/test_msgs.py +++ b/tests/test_msgs.py @@ -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}}