Update tests with init functions

This commit is contained in:
Vincent Demoulin 2024-07-05 09:25:23 +02:00 committed by Fabien Castan
parent a6be4e4938
commit ed4916e803
3 changed files with 11 additions and 0 deletions

View file

@ -9,6 +9,9 @@ from meshroom.core.node import Node
def test_multiviewPipeline():
meshroom.core.initNodes()
meshroom.core.initPipelines()
graph1InputImages = ['/non/existing/fileA']
graph1 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
graph1.name = "graph1"

View file

@ -9,6 +9,8 @@ from meshroom.core.node import Node
def test_formatting_listOfFiles():
meshroom.core.initNodes()
inputImages = ['/non/existing/fileA', '/non/existing/with space/fileB']
graph = Graph('')
@ -37,6 +39,8 @@ def test_formatting_listOfFiles():
def test_formatting_strings():
meshroom.core.initNodes()
graph = Graph('')
n1 = graph.addNewNode('ImageMatching')
name = 'weights'
@ -61,6 +65,8 @@ def test_formatting_strings():
def test_formatting_groups():
meshroom.core.initNodes()
graph = Graph('')
n3 = graph.addNewNode('ImageProcessing')
n3._buildCmdVars() # prepare vars for command line creation

View file

@ -15,6 +15,8 @@ def test_templateVersions():
It fails when an upgrade of a templates is needed. Any template can still be opened even if its
nodes are not up-to-date, as they will be automatically upgraded.
"""
meshroom.core.initNodes()
meshroom.core.initPipelines()
assert len(pipelineTemplates) >= 1