mirror of
https://github.com/trycua/computer.git
synced 2026-05-03 21:49:35 -05:00
fixed ImportPathMismatchError caused by init files
This commit is contained in:
@@ -1 +0,0 @@
|
||||
"""Unit tests for cua-mcp-server package."""
|
||||
@@ -19,6 +19,8 @@ class TestMCPServerImports:
|
||||
assert mcp_server is not None
|
||||
except ImportError:
|
||||
pytest.skip("mcp_server module not installed")
|
||||
except SystemExit:
|
||||
pytest.skip("MCP dependencies (mcp.server.fastmcp) not available")
|
||||
|
||||
|
||||
class TestMCPServerInitialization:
|
||||
@@ -32,6 +34,8 @@ class TestMCPServerInitialization:
|
||||
assert server is not None
|
||||
except ImportError:
|
||||
pytest.skip("MCP server module not available")
|
||||
except SystemExit:
|
||||
pytest.skip("MCP dependencies (mcp.server.fastmcp) not available")
|
||||
except Exception as e:
|
||||
# Some initialization errors are acceptable in unit tests
|
||||
pytest.skip(f"MCP server initialization requires specific setup: {e}")
|
||||
|
||||
Reference in New Issue
Block a user