MCPcopy Index your code
hub / github.com/StackStorm/st2 / _validate_parser

Method _validate_parser

st2client/tests/unit/test_shell.py:225–233  ·  view source on GitHub ↗
(self, args_list, is_subcommand=True)

Source from the content-addressed store, hash-verified

223 self.assertEqual(self.shell.run(argv), 1)
224
225 def _validate_parser(self, args_list, is_subcommand=True):
226 for args in args_list:
227 ns = self.shell.parser.parse_args(args)
228 func = (
229 self.shell.commands[args[0]].run_and_print
230 if not is_subcommand
231 else self.shell.commands[args[0]].commands[args[1]].run_and_print
232 )
233 self.assertEqual(ns.func, func)
234
235 def test_action(self):
236 args_list = [

Callers 11

test_actionMethod · 0.95
test_action_executionMethod · 0.95
test_keyMethod · 0.95
test_policyMethod · 0.95
test_policy_typeMethod · 0.95
test_packMethod · 0.95
test_runMethod · 0.95
test_runnerMethod · 0.95
test_ruleMethod · 0.95
test_triggerMethod · 0.95
test_workflowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected