2cab53bc94
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers CLI - Convert documentation to AI skills dockerfile:Dockerfile name:skill-seekers]) (push) Waiting to run
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers MCP Server - 25 tools for AI assistants dockerfile:Dockerfile.mcp name:skill-seekers-mcp]) (push) Waiting to run
Docker Publish / Test Docker Images (push) Blocked by required conditions
Test Vector Database Adaptors / Test chroma Adaptor (push) Waiting to run
Test Vector Database Adaptors / Test faiss Adaptor (push) Waiting to run
Test Vector Database Adaptors / Test qdrant Adaptor (push) Waiting to run
Test Vector Database Adaptors / Test weaviate Adaptor (push) Waiting to run
Test Vector Database Adaptors / Test MCP Vector DB Tools (push) Waiting to run
Tests / Code Quality (Ruff & Mypy) (push) Waiting to run
Tests / Fast Unit Tests (parallel) (macos-latest, 3.11) (push) Waiting to run
Tests / Fast Unit Tests (parallel) (macos-latest, 3.12) (push) Waiting to run
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.10) (push) Waiting to run
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.11) (push) Waiting to run
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.12) (push) Waiting to run
Tests / Tests (push) Blocked by required conditions
Tests / Serial / Integration / E2E Tests (push) Blocked by required conditions
Tests / MCP Server Tests (push) Blocked by required conditions
75 lines
2.6 KiB
Python
75 lines
2.6 KiB
Python
"""Back-compat shims: old skill_seekers.mcp.* paths re-export skill_seekers.services.*.
|
|
|
|
The domain modules moved to skill_seekers.services in the Phase 5a MCP
|
|
unification; thin shims remain at the old mcp/ paths so external imports keep
|
|
working. These tests pin each shim to the real services object (identity, not
|
|
just importability) so a drifting shim fails loudly.
|
|
"""
|
|
|
|
|
|
def test_marketplace_manager_shim():
|
|
from skill_seekers.mcp.marketplace_manager import MarketplaceManager as ShimClass
|
|
from skill_seekers.services.marketplace_manager import MarketplaceManager
|
|
|
|
assert ShimClass is MarketplaceManager
|
|
|
|
|
|
def test_marketplace_publisher_shim():
|
|
from skill_seekers.mcp.marketplace_publisher import MarketplacePublisher as ShimClass
|
|
from skill_seekers.services.marketplace_publisher import MarketplacePublisher
|
|
|
|
assert ShimClass is MarketplacePublisher
|
|
|
|
|
|
def test_config_publisher_shim():
|
|
from skill_seekers.mcp.config_publisher import (
|
|
CATEGORY_KEYWORDS as SHIM_KEYWORDS,
|
|
)
|
|
from skill_seekers.mcp.config_publisher import (
|
|
ConfigPublisher as ShimClass,
|
|
)
|
|
from skill_seekers.mcp.config_publisher import (
|
|
detect_category as shim_detect_category,
|
|
)
|
|
from skill_seekers.services.config_publisher import (
|
|
CATEGORY_KEYWORDS,
|
|
ConfigPublisher,
|
|
detect_category,
|
|
)
|
|
|
|
assert ShimClass is ConfigPublisher
|
|
assert shim_detect_category is detect_category
|
|
assert SHIM_KEYWORDS is CATEGORY_KEYWORDS
|
|
|
|
|
|
def test_source_manager_shim():
|
|
from skill_seekers.mcp.source_manager import SourceManager as ShimClass
|
|
from skill_seekers.services.source_manager import SourceManager
|
|
|
|
assert ShimClass is SourceManager
|
|
|
|
|
|
def test_git_repo_shim():
|
|
from skill_seekers.mcp.git_repo import GitConfigRepo as ShimClass
|
|
from skill_seekers.services.git_repo import GitConfigRepo
|
|
|
|
assert ShimClass is GitConfigRepo
|
|
|
|
|
|
def test_services_package_has_no_mcp_dependency():
|
|
"""services/ must import cleanly without reaching into skill_seekers.mcp."""
|
|
import subprocess
|
|
import sys
|
|
|
|
code = (
|
|
"import sys\n"
|
|
"import skill_seekers.services.config_publisher\n"
|
|
"import skill_seekers.services.marketplace_manager\n"
|
|
"import skill_seekers.services.marketplace_publisher\n"
|
|
"import skill_seekers.services.source_manager\n"
|
|
"import skill_seekers.services.git_repo\n"
|
|
"assert 'skill_seekers.mcp' not in sys.modules, 'services imported skill_seekers.mcp'\n"
|
|
)
|
|
result = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True)
|
|
assert result.returncode == 0, result.stderr
|