Classify appearance templates by XML root
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user