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": {