From 19ae15c8c8434c1c2b4772a8e1e7908575a96fc4 Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Mon, 9 Dec 2024 13:23:25 +0100 Subject: [PATCH] Use model_validate --- .../streams_bootstrap/test_producer_app.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/components/streams_bootstrap/test_producer_app.py b/tests/components/streams_bootstrap/test_producer_app.py index c3621636c..3cbc510eb 100644 --- a/tests/components/streams_bootstrap/test_producer_app.py +++ b/tests/components/streams_bootstrap/test_producer_app.py @@ -41,9 +41,9 @@ def test_release_name(self): @pytest.fixture() def producer_app(self) -> ProducerApp: - producer = ProducerApp( - name=PRODUCER_APP_NAME, - **{ + producer = ProducerApp.model_validate( + { + "name": PRODUCER_APP_NAME, "version": "3.2.1", "namespace": "test-namespace", "values": { @@ -65,9 +65,9 @@ def producer_app(self) -> ProducerApp: @pytest.fixture() def producer_app_cron_job(self) -> ProducerApp: - producer = ProducerApp( - name=PRODUCER_APP_NAME, - **{ + producer = ProducerApp.model_validate( + { + "name": PRODUCER_APP_NAME, "version": "3.2.1", "namespace": "test-namespace", "values": {