feat: add audio.device and whisper.base_url to config defaults
This commit is contained in:
@@ -22,3 +22,16 @@ def test_config_creates_file_on_first_run():
|
||||
with patch("config.CONFIG_PATH", cfg_path):
|
||||
config.load()
|
||||
assert os.path.exists(cfg_path)
|
||||
|
||||
|
||||
def test_config_has_audio_and_whisper_base_url():
|
||||
import config
|
||||
from unittest.mock import patch
|
||||
import tempfile, os
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
cfg_path = os.path.join(tmpdir, "config.toml")
|
||||
with patch("config.CONFIG_PATH", cfg_path):
|
||||
cfg = config.load()
|
||||
assert "audio" in cfg
|
||||
assert cfg["audio"]["device"] == ""
|
||||
assert cfg["whisper"]["base_url"] == ""
|
||||
|
||||
Reference in New Issue
Block a user