From 4abed3130958c8e9c2e59968e42ebcf521b57e60 Mon Sep 17 00:00:00 2001 From: Nicholas Albion Date: Wed, 4 Oct 2023 15:29:53 +1100 Subject: [PATCH] without `mock_questionary` again --- pilot/helpers/agents/test_Developer.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pilot/helpers/agents/test_Developer.py b/pilot/helpers/agents/test_Developer.py index 5aa8069..14be1be 100644 --- a/pilot/helpers/agents/test_Developer.py +++ b/pilot/helpers/agents/test_Developer.py @@ -169,12 +169,12 @@ class TestDeveloper: mock_questionary = MockQuestionary(['']) - with patch('utils.questionary.questionary', mock_questionary): - # When - result = self.developer.test_code_changes(monkey, convo) + # with patch('utils.questionary.questionary', mock_questionary): + # When + result = self.developer.test_code_changes(monkey, convo) - # Then - assert result == {'success': True, 'cli_response': 'stdout:\n```\n\n```'} - assert mock_requests_post.call_count == 3 - assert "The JSON is invalid at $.type - 'command' is not one of ['automated_test', 'command_test', 'manual_test', 'no_test']" in json_received[1]['messages'][3]['content'] - assert mock_execute.call_count == 1 + # Then + assert result == {'success': True, 'cli_response': 'stdout:\n```\n\n```'} + assert mock_requests_post.call_count == 3 + assert "The JSON is invalid at $.type - 'command' is not one of ['automated_test', 'command_test', 'manual_test', 'no_test']" in json_received[1]['messages'][3]['content'] + assert mock_execute.call_count == 1