web tests

This commit is contained in:
John Lancaster
2026-06-21 17:57:01 -05:00
parent 4958eeb3ef
commit b9bb11ac02
11 changed files with 242 additions and 20 deletions
@@ -5,8 +5,8 @@ from pydantic import ValidationError
from personal_mcp.registry.ingest.prompt import PromptFilesBundle
from personal_mcp.registry.load import _build_prompt_record
from personal_mcp.registry.load import _to_prompt_summary
from personal_mcp.registry.load import load_docs_registry
from personal_mcp.registry.models.registry import PromptSummaryRecord
from tests.registry.models.test_document_validation import as_markdown
from tests.registry.models.test_document_validation import assert_model_is_frozen
from tests.registry.models.test_document_validation import make_markdown_document
@@ -154,7 +154,7 @@ class TestPromptValidationGates:
frontmatter = make_prompt_frontmatter_payload(prompt_id="initial")
bundle = _make_prompt_bundle(slug="initial", frontmatter=frontmatter)
record = _build_prompt_record(bundle=bundle)
summary = _to_prompt_summary(record)
summary = PromptSummaryRecord.from_record(record)
assert summary.model_dump() == {
"prompt_id": "initial",