MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_command_list

Method test_command_list

st2client/tests/unit/test_commands.py:123–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 ),
122 )
123 def test_command_list(self):
124 args = self.parser.parse_args(["fakeresource", "list"])
125 self.assertEqual(args.func, self.branch.commands["list"].run_and_print)
126 instances = self.branch.commands["list"].run(args)
127 actual = [instance.serialize() for instance in instances]
128 expected = json.loads(json.dumps(base.RESOURCES))
129 self.assertListEqual(actual, expected)
130
131 @mock.patch.object(
132 httpclient.HTTPClient,

Callers

nothing calls this directly

Calls 2

serializeMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected