Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def build_from(actions, ints):
ints_index = 0
g = Goals('Root')
for name in actions:
int_val = 0
if name == 'select':
int_val = ints[ints_index]
ints_index += 1
USER_ACTIONS[name](g, int_val)
return g
def setUp(self):
self.goals = Goals('Root')