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

Method works_for_subclasses

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

Source from the content-addressed store, hash-verified

492 assert str(call) == "<Call 'mytask', args: (), kwargs: {}>"
493
494 def works_for_subclasses(self):
495 class MyCall(Call):
496 pass
497
498 call = MyCall(self.task)
499 assert "<MyCall" in str(call)
500
501 def includes_args_and_kwargs(self):
502 call = Call(

Callers

nothing calls this directly

Calls 2

strClass · 0.85
MyCallClass · 0.70

Tested by

no test coverage detected