AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Failing test on a new Pydantic version (#9897)
Zamil Majdy3526986f9823
diff --git a/autogpt_platform/backend/backend/server/v2/library/model_test.py b/autogpt_platform/backend/backend/server/v2/library/model_test.pyindex ce55b0ec8f..898cc2502c 100644--- a/autogpt_platform/backend/backend/server/v2/library/model_test.py+++ b/autogpt_platform/backend/backend/server/v2/library/model_test.py@@ -22,11 +22,13 @@ async def test_agent_preset_from_db():userId="test-user-123",isDeleted=False,InputPresets=[- prisma.models.AgentNodeExecutionInputOutput(- id="input-123",- time=datetime.datetime.now(),- name="input1",- data=prisma.Json({"type": "string", "value": "test value"}),+ prisma.models.AgentNodeExecutionInputOutput.model_validate(+ {+ "id": "input-123",+ "time": datetime.datetime.now(),+ "name": "input1",+ "data": '{"type": "string", "value": "test value"}',+ })],)