from __future__ import annotations from collections.abc import Callable from pathlib import PurePosixPath import pytest from personal_mcp.registry.ingest.document import MarkdownDocument # Ingest-specific fixtures and factories belong in this subtree conftest. @pytest.fixture def make_doc() -> Callable[[str], MarkdownDocument]: def _make_doc(relpath: str, content: str = "# body\n") -> MarkdownDocument: return MarkdownDocument(relpath=PurePosixPath(relpath), content=content) return _make_doc