fixed ImportPathMismatchError caused by init files

This commit is contained in:
Elshoubky M
2025-10-25 01:54:04 -04:00
parent 05ba209808
commit 59016608da
8 changed files with 4 additions and 7 deletions
-1
View File
@@ -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}")