mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
style: remove trailing whitespace in test_voice.py
This commit is contained in:
parent
5c208dba41
commit
e9942737c6
1 changed files with 2 additions and 2 deletions
|
@ -75,11 +75,11 @@ def test_record_and_transcribe(mock_litellm, mock_soundfile):
|
|||
# Set up the mock stream to simulate some audio data
|
||||
mock_data = np.zeros((1000, 1))
|
||||
mock_stream.return_value.__enter__.return_value = mock_data
|
||||
|
||||
|
||||
# Mock prompt_toolkit's prompt function more completely
|
||||
with patch("prompt_toolkit.shortcuts.prompt") as mock_prompt:
|
||||
mock_prompt.return_value = "" # Simulate pressing Enter
|
||||
|
||||
|
||||
# Mock the transcription response
|
||||
mock_litellm.transcription.return_value = Mock(text="Hello, world!")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue