MCPcopy Create free account
hub / github.com/pyinvoke/invoke / three_tasks_with_args

Method three_tasks_with_args

tests/cli.py:130–136  ·  view source on GitHub ↗

my-task --boolean my-task3 --mystring foo my-task2

(self)

Source from the content-addressed store, hash-verified

128 self._flag_value_task("my-task2")
129
130 def three_tasks_with_args(self):
131 "my-task --boolean my-task3 --mystring foo my-task2"
132 r = self._parse("my-task --boolean my-task3 --mystring foo my-task2")
133 assert len(r) == 3
134 assert [x.name for x in r] == ["my-task", "my-task3", "my-task2"]
135 assert r[0].args.boolean.value
136 assert r[1].args.mystring.value == "foo"
137
138 def tasks_with_duplicately_named_kwargs(self):
139 "my-task --mystring foo my-task3 --mystring bar"

Callers

nothing calls this directly

Calls 1

_parseMethod · 0.95

Tested by

no test coverage detected