Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_operationrun():
c = mc.OperationRun('Main.MyStudy.Kinematics')
assert c.get_macro(0) == 'operation Main.MyStudy.Kinematics\nrun'
from anypytools import AnyPyProcess
from anypytools.macro_commands import Load, OperationRun
app = AnyPyProcess(num_processes = 3)
macro = [Load("main.any"),
OperationRun('Main.Study.InverseDynamics') ]
app.start_macro(macro, search_subdirs= "model[1-9].*main.any" )