fix: resolve CI/CD issues - all tests pass locally
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user