We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can replicate this by applying this diff for a new test (that you should add)
diff --git a/autogpt_platform/backend/backend/blocks/branching.py b/autogpt_platform/backend/backend/blocks/branching.py index 65a01c977..1d3fbe18e 100644 --- a/autogpt_platform/backend/backend/blocks/branching.py +++ b/autogpt_platform/backend/backend/blocks/branching.py @@ -57,16 +57,27 @@ class ConditionBlock(Block): output_schema=ConditionBlock.Output, description="Handles conditional logic based on comparison operators", categories={BlockCategory.LOGIC}, - test_input={ - "value1": 10, - "operator": ComparisonOperator.GREATER_THAN.value, - "value2": 5, - "yes_value": "Greater", - "no_value": "Not greater", - }, + test_input=[ + { + "value1": 10, + "operator": ComparisonOperator.GREATER_THAN.value, + "value2": 5, + "yes_value": "Greater", + "no_value": "Not greater", + }, + { + "value1": "hello", + "operator": ComparisonOperator.EQUAL.value, + "value2": "hello", + "yes_value": "Equal", + "no_value": "Not equal", + }, + ], test_output=[ ("result", True), ("yes_output", "Greater"), + ("result", True), + ("yes_output", "Equal"), ], )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You can replicate this by applying this diff for a new test (that you should add)
The text was updated successfully, but these errors were encountered: