[tests] Add checks on internal attributes in the templatesVersion test

If some internal attributes are saved in the templates, their description
should be checked just like the input attributes to ensure there are no
conflicts.
This commit is contained in:
Candice Bentéjac 2022-10-24 11:28:39 +02:00
parent 91db7657ac
commit b470078667

View file

@ -38,6 +38,7 @@ def test_templateVersions():
currentNodeVersion = meshroom.core.nodeVersion(nodeDesc)
inputs = nodeData.get("inputs", {})
internalInputs = nodeData.get("internalInputs", {})
version = nodesVersions.get(nodeType, None)
compatibilityIssue = None
@ -49,5 +50,9 @@ def test_templateVersions():
if not CompatibilityNode.attributeDescFromName(nodeDesc.inputs, attrName, value):
compatibilityIssue = CompatibilityIssue.DescriptionConflict
break
for attrName, value in internalInputs.items():
if not CompatibilityNode.attributeDescFromName(nodeDesc.internalInputs, attrName, value):
compatibilityIssue = CompatibilityIssue.DescriptionConflict
break
assert compatibilityIssue is None