def run_scenario(vars, scenario_ident, func): from sentry.utils.apidocs import Runner runner = Runner(scenario_ident, func, **vars) report("scenario", 'Running scenario "%s"' % scenario_ident) func(runner) return runner.to_json()
def run_scenario(vars, scenario_ident, func): runner = Runner(scenario_ident, func, **vars) report('scenario', 'Running scenario "%s"' % scenario_ident) func(runner) dump_json('scenarios/%s.json' % scenario_ident, runner.to_json())
def run_scenario(vars, scenario_ident, func): runner = Runner(scenario_ident, func, **vars) report('scenario', 'Running scenario "%s"' % scenario_ident) func(runner) return runner.to_json()