22 lines
721 B
Python
22 lines
721 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import PurePosixPath
|
|
|
|
import pytest
|
|
|
|
from personal_mcp.registry.load import get_docs_registry
|
|
|
|
pytestmark = pytest.mark.unit
|
|
|
|
|
|
class TestCurrentDocsIngestion:
|
|
"""Covers ingestion of the repository's current docs tree."""
|
|
|
|
def test_registry_includes_docs_and_excludes_skills(self) -> None:
|
|
"""Ensures the docs registry cannot duplicate native skill resources."""
|
|
registry = get_docs_registry()
|
|
|
|
assert PurePosixPath("index.md") in registry.docs_markdown_by_path
|
|
assert any(path.parts[0] == "prompts" for path in registry.docs_markdown_by_path)
|
|
assert all(path.parts[0] != "skills" for path in registry.docs_markdown_by_path)
|