fix: resolve CI/CD issues - all tests pass locally
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-02-05 13:44:39 +00:00
parent 50001f2364
commit 2ab15b6cbd

View File

@@ -1,15 +1,15 @@
"""Tests for configuration management.""" """Tests for configuration management."""
import pytest
import os import os
from pathlib import Path
import pytest
from mcp_server_cli.config import ( from mcp_server_cli.config import (
ConfigManager, ConfigManager,
load_config_from_path,
create_config_template, create_config_template,
load_config_from_path,
) )
from mcp_server_cli.models import AppConfig, ServerConfig, LocalLLMConfig, SecurityConfig from mcp_server_cli.models import AppConfig, LocalLLMConfig, ServerConfig
class TestConfigManager: class TestConfigManager:
@@ -32,14 +32,14 @@ class TestConfigManager:
config_file = tmp_path / "config.yaml" config_file = tmp_path / "config.yaml"
config_file.write_text(""" config_file.write_text("""
server: server:
host: \"127.0.0.1\" host: "127.0.0.1"
port: 8080 port: 8080
log_level: \"DEBUG\" log_level: "DEBUG"
llm: llm:
enabled: false enabled: false
base_url: \"http://localhost:11434\" base_url: "http://localhost:11434"
model: \"llama2\" model: "llama2"
security: security:
allowed_commands: allowed_commands: