MCPcopy
hub / github.com/WebODM/WebODM / start_processing_node

Function start_processing_node

app/tests/utils.py:19–26  ·  view source on GitHub ↗
(args = [])

Source from the content-addressed store, hash-verified

17
18@contextmanager
19def start_processing_node(args = []):
20 current_dir = os.path.dirname(os.path.realpath(__file__))
21 node_odm = subprocess.Popen(['node', 'index.js', '--port', '11223', '--test'] + args, shell=False,
22 cwd=os.path.join(current_dir, "..", "..", "nodeodm", "external", "NodeODM"))
23 time.sleep(3) # Wait for the server to launch
24 yield node_odm
25 node_odm.terminate()
26 time.sleep(1) # Wait for the server to stop
27
28@contextmanager
29def start_simple_auth_server(args = []):

Callers 14

test_infoMethod · 0.90
test_optionsMethod · 0.90
test_token_authMethod · 0.90
test_taskMethod · 0.90
test_backupMethod · 0.90
test_exportsMethod · 0.85
test_worker_tasksMethod · 0.85
test_taskMethod · 0.85

Calls

no outgoing calls

Tested by 14

test_infoMethod · 0.72
test_optionsMethod · 0.72
test_token_authMethod · 0.72
test_taskMethod · 0.72
test_backupMethod · 0.72
test_exportsMethod · 0.68
test_worker_tasksMethod · 0.68
test_taskMethod · 0.68