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

Method includes_args_and_kwargs

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

Source from the content-addressed store, hash-verified

499 assert "<MyCall" in str(call)
500
501 def includes_args_and_kwargs(self):
502 call = Call(
503 self.task,
504 args=("posarg1", "posarg2"),
505 # Single-key dict to avoid dict ordering issues
506 kwargs={"kwarg1": "val1"},
507 )
508 expected = "<Call 'mytask', args: ('posarg1', 'posarg2'), kwargs: {'kwarg1': 'val1'}>" # noqa
509 assert str(call) == expected
510
511 def includes_aka_if_explicit_name_given(self):
512 call = Call(self.task, called_as="notmytask")

Callers

nothing calls this directly

Calls 2

CallClass · 0.90
strClass · 0.85

Tested by

no test coverage detected