mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-23 22:16:30 +02:00
[tests] Update tests according to attribute enabled
This commit is contained in:
parent
869e54f084
commit
57a1119b21
1 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ def test_multiviewPipeline():
|
||||||
for node in graph1.nodes:
|
for node in graph1.nodes:
|
||||||
otherNode = otherGraph.node(node.name)
|
otherNode = otherGraph.node(node.name)
|
||||||
for key, attr in node.attributes.items():
|
for key, attr in node.attributes.items():
|
||||||
if attr.isOutput:
|
if attr.isOutput and attr.enabled:
|
||||||
otherAttr = otherNode.attribute(key)
|
otherAttr = otherNode.attribute(key)
|
||||||
assert attr.uid() != otherAttr.uid()
|
assert attr.uid() != otherAttr.uid()
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ def test_multiviewPipeline():
|
||||||
otherNode = graph2b.node(node.name)
|
otherNode = graph2b.node(node.name)
|
||||||
for key, attr in node.attributes.items():
|
for key, attr in node.attributes.items():
|
||||||
otherAttr = otherNode.attribute(key)
|
otherAttr = otherNode.attribute(key)
|
||||||
if attr.isOutput:
|
if attr.isOutput and attr.enabled:
|
||||||
assert attr.uid() == otherAttr.uid()
|
assert attr.uid() == otherAttr.uid()
|
||||||
else:
|
else:
|
||||||
for uidIndex in attr.desc.uid:
|
for uidIndex in attr.desc.uid:
|
||||||
|
@ -103,7 +103,7 @@ def test_multiviewPipeline():
|
||||||
otherNode = graph4b.node(node.name)
|
otherNode = graph4b.node(node.name)
|
||||||
for key, attr in node.attributes.items():
|
for key, attr in node.attributes.items():
|
||||||
otherAttr = otherNode.attribute(key)
|
otherAttr = otherNode.attribute(key)
|
||||||
if attr.isOutput:
|
if attr.isOutput and attr.enabled:
|
||||||
assert attr.uid() == otherAttr.uid()
|
assert attr.uid() == otherAttr.uid()
|
||||||
else:
|
else:
|
||||||
for uidIndex in attr.desc.uid:
|
for uidIndex in attr.desc.uid:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue