MCPcopy Index your code
hub / github.com/raiden-network/raiden / get_cli_result

Function get_cli_result

raiden/tests/utils/cli.py:26–35  ·  view source on GitHub ↗
(cli_input, cli_runner, capture_function)

Source from the content-addressed store, hash-verified

24
25
26def get_cli_result(cli_input, cli_runner, capture_function):
27
28 cli_args = cli_input.split()
29 command = cli_args[0]
30 assert command == "raiden"
31 call_args = cli_args[1:] or None
32
33 with mock.patch(capture_function, autospec=True):
34 result = cli_runner.invoke(cli.run, call_args)
35 return result
36
37
38def assert_invoked_kwargs(

Calls 2

patchMethod · 0.80
invokeMethod · 0.80

Tested by 2