From 323b2669c0dd95d2dba38678d75d9aff1a823934 Mon Sep 17 00:00:00 2001 From: Nicholas Albion Date: Sat, 23 Sep 2023 17:14:54 +1000 Subject: [PATCH] updated test --- pilot/helpers/agents/test_Developer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pilot/helpers/agents/test_Developer.py b/pilot/helpers/agents/test_Developer.py index 0dc603b..f326b56 100644 --- a/pilot/helpers/agents/test_Developer.py +++ b/pilot/helpers/agents/test_Developer.py @@ -42,10 +42,7 @@ class TestDeveloper: @patch('helpers.AgentConvo.get_saved_development_step') @patch('helpers.AgentConvo.save_development_step') @patch('helpers.AgentConvo.create_gpt_chat_completion', - return_value={'function_calls': { - 'name': 'execute_command', - 'arguments': {'command': 'python --version', 'timeout': 10} - }}) + return_value={'text': '{"command": "python --version", "timeout": 10}'}) @patch('helpers.cli.styled_text', return_value='no') @patch('helpers.cli.execute_command', return_value=('', 'DONE')) def test_install_technology(self, mock_execute_command, mock_styled_text,