mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[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:
parent
91db7657ac
commit
b470078667
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue