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

Method autocreated_short_flags_can_be_disabled

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

Source from the content-addressed store, hash-verified

325 assert self.argdict[short] is self.argdict[long_]
326
327 def autocreated_short_flags_can_be_disabled(self):
328 @task(auto_shortflags=False)
329 def mytask(c, arg):
330 pass
331
332 args = self._task_to_dict(mytask)
333 assert "a" not in args
334 assert "arg" in args
335
336 def autocreated_shortflags_dont_collide(self):
337 "auto-created short flags don't collide"

Callers

nothing calls this directly

Calls 1

_task_to_dictMethod · 0.95

Tested by

no test coverage detected