feat: add audio.device and whisper.base_url to config defaults

This commit is contained in:
2026-04-01 20:25:48 +02:00
parent 3f9abc6a89
commit 912b333124
2 changed files with 19 additions and 1 deletions
+13
View File
@@ -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"] == ""