test content

This commit is contained in:
John Lancaster
2026-06-21 15:13:44 -05:00
parent 29130c3a0c
commit 3c5db37223
3 changed files with 262 additions and 21 deletions
+15
View File
@@ -1,3 +1,18 @@
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, str], MarkdownDocument]:
def _make_doc(relpath: str, content: str = "# body\n") -> MarkdownDocument:
return MarkdownDocument(relpath=PurePosixPath(relpath), content=content)
return _make_doc