chore: clean imports and restore test coverage

This commit is contained in:
2026-10-09 19:05:39 +00:00
parent cebcb3fd61
commit ee6f5ea52e
9 changed files with 59 additions and 46 deletions

View File

@@ -37,7 +37,6 @@ Architecture:
import pytest
import yaml
from voice_assistant.config.loader import load_config
from voice_assistant.config.loader import (
load_config,
load_provider_catalog,
@@ -167,7 +166,7 @@ def test_load_provider_catalog_missing_file(tmp_path):
)
def test_load_config_uses_app_env(
def test_load_config_uses_development_app_env(
tmp_path,
monkeypatch,
):
@@ -220,7 +219,7 @@ def test_load_config_rejects_unknown_environment(
config_dir=tmp_path,
)
def test_load_config_uses_app_env(
def test_load_config_uses_staging_app_env(
tmp_path,
monkeypatch,
):
@@ -273,16 +272,3 @@ agent:
assert config.agent.provider == "mock"
def test_load_config_rejects_unknown_environment(
tmp_path,
):
with pytest.raises(
FileNotFoundError,
match="Configuration file not found",
):
load_config(
environment="does-not-exist",
config_dir=tmp_path,
)