fix(1c): retain descriptor role in template inventory
This commit is contained in:
@@ -7061,14 +7061,13 @@ def test_common_template_inventory_preserves_unmapped_descriptor_code(monkeypatc
|
||||
monkeypatch.setattr(adapter_server, "resolve_object_guid", lambda *_args, **_kwargs: ("a" * 36, None, {"name": "Оформление", "ref": "CommonTemplate.Оформление"}, None))
|
||||
monkeypatch.setattr(adapter_server, "read_template_by_guid", lambda _payload: {"status": "ok", "source": {"kind": "live_sql"}, "templates": [{"guid": "a" * 36}]})
|
||||
monkeypatch.setattr(adapter_server, "metadata_object_parts", lambda _payload: {"parts": [{
|
||||
"role": "metadata_payload",
|
||||
"classification": {"tree": {"type": "list", "items": [
|
||||
"classification": {"role": "metadata_payload", "tree": {"type": "list", "items": [
|
||||
{"type": "atom", "value": "1"},
|
||||
{"type": "list", "items": [
|
||||
{"type": "atom", "value": "4"}, {"type": "list", "items": []}, {"type": "atom", "value": "7"},
|
||||
]},
|
||||
]}},
|
||||
}, {"role": "content", "classification": {"xml_root": "AppearanceTemplate"}, "features": {}}]})
|
||||
}, {"classification": {"role": "binary_or_unknown_payload", "xml_root": "AppearanceTemplate"}, "features": {}}]})
|
||||
|
||||
result = adapter_server.metadata_object_templates({"base_id": "upo_test", "kind": "CommonTemplate", "name": "Оформление"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user