Skip to content

Commit

Permalink
Use model_validate
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Dec 9, 2024
1 parent 582eb71 commit 19ae15c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/components/streams_bootstrap/test_producer_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down

0 comments on commit 19ae15c

Please sign in to comment.