reorg
This commit is contained in:
@@ -3,12 +3,12 @@ from pathlib import PurePosixPath
|
||||
|
||||
import pytest
|
||||
|
||||
from personal_mcp.registry.ingest.document import MarkdownDocument
|
||||
from personal_mcp.registry.load import load_markdown
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
|
||||
class TestMarkdownDocument:
|
||||
class TestLoadMarkdown:
|
||||
"""Covers recursive Markdown discovery and loading."""
|
||||
|
||||
def test_loads_markdown_in_stable_order(self, tmp_path: Path) -> None:
|
||||
@@ -18,10 +18,10 @@ class TestMarkdownDocument:
|
||||
(nested / "a.md").write_text("alpha\n", encoding="utf-8")
|
||||
(nested / "ignored.txt").write_text("ignored\n", encoding="utf-8")
|
||||
|
||||
docs = MarkdownDocument.from_root(tmp_path)
|
||||
docs = load_markdown(tmp_path)
|
||||
|
||||
assert list(docs) == [
|
||||
PurePosixPath("guides/a.md"),
|
||||
PurePosixPath("guides/b.md"),
|
||||
]
|
||||
assert docs[PurePosixPath("guides/b.md")].content == "caf\u00e9\n"
|
||||
assert docs[PurePosixPath("guides/b.md")] == "caf\u00e9\n"
|
||||
@@ -1,9 +1,9 @@
|
||||
from pathlib import PurePosixPath
|
||||
|
||||
import pytest
|
||||
|
||||
from personal_mcp.registry.models.registry import DocsRegistry
|
||||
from personal_mcp.registry.read import read_docs_markdown_path
|
||||
|
||||
from personal_mcp.registry.load import read_docs_markdown_path
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user