diff options
Diffstat (limited to 'tests/unit/test_execute_command.py')
-rw-r--r-- | tests/unit/test_execute_command.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/unit/test_execute_command.py b/tests/unit/test_execute_command.py deleted file mode 100644 index 21fb0b66e..000000000 --- a/tests/unit/test_execute_command.py +++ /dev/null @@ -1,23 +0,0 @@ -from autogpt.agent import Agent -from autogpt.app import execute_command - - -def check_plan(): - return "hi" - - -def test_execute_command_plugin(agent: Agent): - """Test that executing a command that came from a plugin works as expected""" - command_name = "check_plan" - agent.ai_config.prompt_generator.add_command( - command_name, - "Read the plan.md with the next goals to achieve", - {}, - check_plan, - ) - command_result = execute_command( - command_name=command_name, - arguments={}, - agent=agent, - ) - assert command_result == "hi" |