Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
majdyz committed Dec 26, 2024
1 parent 4d3e92b commit a389d13
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions autogpt_platform/backend/test/data/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a389d13

Please sign in to comment.