mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
Initial version
* plugins loader * graph IO in json * uid computation * commandLine expression evaluation * subprocess execution * generate statistics * export command logs to file * save/load status file * only compute nodes not previously computed
This commit is contained in:
parent
29729612f7
commit
096da0689d
10 changed files with 858 additions and 0 deletions
23
tests/test_task.py
Normal file
23
tests/test_task.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
import processGraph as pg
|
||||
from nose.tools import *
|
||||
|
||||
|
||||
def test_depth():
|
||||
graph = pg.Graph('Tests tasks depth')
|
||||
|
||||
tA = graph.addNewNode('Ls', input='/tmp')
|
||||
tB = graph.addNewNode('AppendText', inputText='echo B')
|
||||
tC = graph.addNewNode('AppendText', inputText='echo C')
|
||||
|
||||
graph.addEdges(
|
||||
(tA.output, tB.input),
|
||||
(tB.output, tC.input)
|
||||
)
|
||||
|
||||
assert_equal(tA.getDepth(), 1)
|
||||
assert_equal(tB.getDepth(), 2)
|
||||
assert_equal(tC.getDepth(), 3)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_depth()
|
Loading…
Add table
Add a link
Reference in a new issue