MCPcopy Index your code
hub / github.com/pyinvoke/invoke / kwargs

Method kwargs

tests/executor.py:60–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 assert self.task1.body.called
59
60 def kwargs(self):
61 k = {"foo": "bar"}
62 self.executor.execute(("task1", k))
63 args = self.task1.body.call_args[0]
64 kwargs = self.task1.body.call_args[1]
65 assert isinstance(args[0], Context)
66 assert len(args) == 1
67 assert kwargs["foo"] == "bar"
68
69 def contextualized_tasks_are_given_parser_context_arg(self):
70 self.executor.execute("contextualized")

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected