test content
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user