From a389d13a733aea69a87a65ebecb45baf7c63b6b4 Mon Sep 17 00:00:00 2001 From: Zamil Majdy Date: Thu, 26 Dec 2024 09:34:13 -0600 Subject: [PATCH] Fix test --- autogpt_platform/backend/test/data/test_graph.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/autogpt_platform/backend/test/data/test_graph.py b/autogpt_platform/backend/test/data/test_graph.py index 050e20fdc04b..c306a60fc55a 100644 --- a/autogpt_platform/backend/test/data/test_graph.py +++ b/autogpt_platform/backend/test/data/test_graph.py @@ -90,7 +90,12 @@ async def test_get_input_schema(server: SpinTestServer): Node( id="node_0_a", block_id=input_block, - input_default={"name": "in_key_a", "title": "Key A", "value": "A"}, + input_default={ + "name": "in_key_a", + "title": "Key A", + "value": "A", + "advanced": True, + }, metadata={"id": "node_0_a"}, ), Node( @@ -138,8 +143,10 @@ async def test_get_input_schema(server: SpinTestServer): ) class ExpectedInputSchema(BlockSchema): - in_key_a: Any = SchemaField(title="Key A", default="A", advanced=False) - in_key_b: Any = SchemaField(title="in_key_b", advanced=True) + in_key_a: Any = SchemaField(title="Key A", default="A", advanced=True) + in_key_b: Any = SchemaField( + title="in_key_b", advanced=False + ) # no default value class ExpectedOutputSchema(BlockSchema): out_key: Any = SchemaField(