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

Method setup_method

tests/task.py:382–395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

380
381 class help:
382 def setup_method(self):
383 @task(
384 help={
385 "simple": "key",
386 "with_underscores": "yup",
387 "with-dashes": "also yup",
388 }
389 )
390 def mytask(c, simple, with_underscores, with_dashes):
391 pass
392
393 self.help = {
394 arg.name: arg.help for arg in mytask.get_arguments()
395 }
396
397 def base_case(self):
398 assert self.help["simple"] == "key"

Callers

nothing calls this directly

Calls 1

get_argumentsMethod · 0.80

Tested by

no test coverage detected