Skip to content

Commit

Permalink
refactor: Remove redundant test for custom Whisper API configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mbailey committed Dec 19, 2024
1 parent cddbde9 commit 930a652
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/basic/test_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,3 @@ def test_record_and_transcribe_custom_base_no_key():
assert "When using a custom WHISPER_API_BASE" in str(exc.value)
assert "via --api whisper=<key>" in str(exc.value)

def test_record_and_transcribe_custom_base_with_key():
with patch("aider.voice.sf", MagicMock()):
voice = Voice()
with patch.dict(
os.environ,
{
"WHISPER_API_BASE": "http://custom.api",
"WHISPER_API_KEY": "test-key"
},
clear=True
):
with patch.object(voice, "raw_record_and_transcribe") as mock_record:
voice.record_and_transcribe()
assert mock_record.called

0 comments on commit 930a652

Please sign in to comment.