From 2d425d5e68fc60e2bec45927072cbca178372910 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 22 Nov 2023 08:22:38 -0300 Subject: [PATCH] Fix model_dump method call in test_database.py --- tests/test_database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_database.py b/tests/test_database.py index e447a677f..f52252856 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -35,7 +35,7 @@ def test_create_flow(client: TestClient, json_flow: str, active_user, logged_in_ assert response.json()["data"] == flow.data # flow is optional so we can create a flow without a flow flow = FlowCreate(name="Test Flow", description="description") - response = client.post("api/v1/flows/", json=flow.dict(exclude_unset=True), headers=logged_in_headers) + response = client.post("api/v1/flows/", json=flow.model_dump(exclude_unset=True), headers=logged_in_headers) assert response.status_code == 201 assert response.json()["name"] == flow.name assert response.json()["data"] == flow.data