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
|
import tempfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
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.server import MCPServer
|
||||||
from mcp_server_cli.tools import (
|
from mcp_server_cli.tools import (
|
||||||
FileTools,
|
FileTools,
|
||||||
@@ -17,11 +23,6 @@ from mcp_server_cli.tools import (
|
|||||||
ShellTools,
|
ShellTools,
|
||||||
ToolRegistry,
|
ToolRegistry,
|
||||||
)
|
)
|
||||||
from mcp_server_cli.models import (
|
|
||||||
ServerConfig,
|
|
||||||
LocalLLMConfig,
|
|
||||||
SecurityConfig,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
@@ -45,14 +46,14 @@ def temp_yaml_file(temp_dir: Path) -> Generator[Path, None, None]:
|
|||||||
file_path = temp_dir / "test_config.yaml"
|
file_path = temp_dir / "test_config.yaml"
|
||||||
content = """
|
content = """
|
||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user