Classify appearance templates by XML root

This commit is contained in:
2026-08-14 12:09:13 +03:00
parent 61c0ed1726
commit 5615e262a8
3 changed files with 31 additions and 2 deletions
+10
View File
@@ -6949,6 +6949,16 @@ def test_public_template_summary_uses_declared_template_type_alias() -> None:
assert summary["template_type_candidates"][0]["confidence"] == "high"
def test_public_template_summary_recognizes_live_appearance_xml_root() -> None:
summary = adapter_server.public_template_summary(
[{"role": "content", "classification": {"xml_root": "AppearanceTemplate"}, "features": {}}]
)
assert summary["platform_type"] == "Макет оформления компоновки данных"
assert summary["template_type_candidates"][0]["id"] == "data_composition_appearance_template"
assert summary["template_type_candidates"][0]["evidence"] == ["payload XML root"]
def test_moxel_template_artifact_kind_tracks_coordinate_hint_schema() -> None:
assert adapter_server.MOXEL_TEMPLATE_ARTIFACT_KIND == "template_part_moxel_v11"