From ccfa15333c24915d7ca0c2ad4bbb50a3008737f3 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 5 Feb 2026 13:42:32 +0000 Subject: [PATCH] fix: resolve CI/CD issues - all tests pass locally --- tests/conftest.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index e628d35..cb61c11 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,11 +5,17 @@ import sys import tempfile from pathlib import Path from typing import Generator + import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) -from mcp_server_cli.config import ConfigManager, AppConfig +from mcp_server_cli.config import AppConfig, ConfigManager +from mcp_server_cli.models import ( + LocalLLMConfig, + SecurityConfig, + ServerConfig, +) from mcp_server_cli.server import MCPServer from mcp_server_cli.tools import ( FileTools, @@ -17,11 +23,6 @@ from mcp_server_cli.tools import ( ShellTools, ToolRegistry, ) -from mcp_server_cli.models import ( - ServerConfig, - LocalLLMConfig, - SecurityConfig, -) @pytest.fixture @@ -45,14 +46,14 @@ def temp_yaml_file(temp_dir: Path) -> Generator[Path, None, None]: file_path = temp_dir / "test_config.yaml" content = """ server: - host: \"127.0.0.1\" + host: "127.0.0.1" port: 8080 - log_level: \"DEBUG\" + log_level: "DEBUG" llm: enabled: false - base_url: \"http://localhost:11434\" - model: \"llama2\" + base_url: "http://localhost:11434" + model: "llama2" security: allowed_commands: