From f7c0c433c36c53cda5834b230010b24e86c1098b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 5 Nov 2024 11:42:31 -0800 Subject: [PATCH] refactor: add mock for sendchat.simple_send_with_retries in test --- tests/basic/test_editblock.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/basic/test_editblock.py b/tests/basic/test_editblock.py index de3a37fba..ccc0a9ffd 100644 --- a/tests/basic/test_editblock.py +++ b/tests/basic/test_editblock.py @@ -373,9 +373,8 @@ creating a new file coder.send = mock_send def mock_sswr(*args, **kwargs): return "noop" - #ai mock sendchat.simple_send_with_retries with that ^^ mock! - - # Call the run method with a message + with patch("aider.sendchat.simple_send_with_retries", mock_sswr): + # Call the run method with a message coder.run(with_message="hi") content = Path(file1).read_text(encoding="utf-8")