import pytest from core.config_loader import load_config def test_default_config_fallback(tmp_path): config_path = tmp_path / "missing.yaml" config = load_config(str(config_path)) assert "app" in config assert config["server"]["port"] == 8000