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

Class str

tests/parser_context.py:311–321  ·  view source on GitHub ↗

__str__

Source from the content-addressed store, hash-verified

309 assert c.missing_positional_args == []
310
311 class str:
312 "__str__"
313
314 def with_no_args_output_is_simple(self):
315 assert str(Context("foo")) == "<parser/Context 'foo'>"
316
317 def args_show_as_repr(self):
318 string = str(Context("bar", args=[Argument("arg1")]))
319 assert (
320 string == "<parser/Context 'bar': {'arg1': <Argument: arg1>}>"
321 ) # noqa

Calls

no outgoing calls

Tested by

no test coverage detected