"""Basic tests for the OCP Viewer MCP Server."""
import pytest
def test_import():
"""Test that the module can be imported."""
from ocp_viewer_mcp import server
assert hasattr(server, 'server')
assert hasattr(server, 'main')
def test_server_name():
"""Test that the server has the correct name."""
from ocp_viewer_mcp.server import server
assert server.name == "ocp-viewer"
@pytest.mark.asyncio
async def test_list_tools():
"""Test that tools are listed correctly."""
from ocp_viewer_mcp.server import list_tools
tools = await list_tools()
assert len(tools) == 1
assert tools[0].name == "capture_ocp_screenshot"
assert "port" in tools[0].inputSchema["properties"]
assert "wait_ms" in tools[0].inputSchema["properties"]