mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
Update tests with init functions
This commit is contained in:
parent
a6be4e4938
commit
ed4916e803
3 changed files with 11 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue