better data models
This commit is contained in:
@@ -7,7 +7,6 @@ import pytest
|
||||
from personal_mcp.registry.ingest.document import MarkdownDocument
|
||||
from personal_mcp.registry.ingest.prompt import PromptFilesBundle
|
||||
from personal_mcp.registry.ingest.skill import SkillFilesBundle
|
||||
from personal_mcp.registry.load import load_docs_registry
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
@@ -41,10 +40,3 @@ class TestCurrentDocsIngestion:
|
||||
bundles = PromptFilesBundle.from_docs(docs.values())
|
||||
|
||||
assert {bundle.slug for bundle in bundles} == expected_slugs
|
||||
|
||||
def test_loads_current_registry(self) -> None:
|
||||
"""Ensures the current docs registry loads without validation errors."""
|
||||
registry = load_docs_registry(package_anchor="personal_mcp", docs_root="../../docs")
|
||||
|
||||
assert set(registry.skills_by_id) == {path.parent.name for path in DOCS_ROOT.glob("skills/*/SKILL.md")}
|
||||
assert set(registry.prompts_by_id) == {path.parent.name for path in DOCS_ROOT.glob("prompts/*/PROMPT.md")}
|
||||
|
||||
Reference in New Issue
Block a user