mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: correct sounddevice module mocking in voice tests
This commit is contained in:
parent
9304b80b69
commit
b671db7108
1 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ from aider.voice import SoundDeviceError, Voice
|
||||||
# Mock the entire sounddevice module
|
# Mock the entire sounddevice module
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_sounddevice():
|
def mock_sounddevice():
|
||||||
with patch("sounddevice") as mock_sd:
|
mock_sd = MagicMock()
|
||||||
mock_sd.query_devices.return_value = [
|
mock_sd.query_devices.return_value = [
|
||||||
{"name": "test_device", "max_input_channels": 2},
|
{"name": "test_device", "max_input_channels": 2},
|
||||||
{"name": "another_device", "max_input_channels": 1},
|
{"name": "another_device", "max_input_channels": 1},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue