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

Method string_display

tests/config.py:504–507  ·  view source on GitHub ↗

__str__ and friends

(self)

Source from the content-addressed store, hash-verified

502 assert c["a_nest"]["an_egg"]
503
504 def string_display(self):
505 "__str__ and friends"
506 config = Config(defaults={"foo": "bar"})
507 assert repr(config) == "<Config: {'foo': 'bar'}>"
508
509 def merging_does_not_wipe_user_modifications_or_deletions(self):
510 c = Config({"foo": {"bar": "biz"}, "error": True})

Callers

nothing calls this directly

Calls 2

ConfigClass · 0.90
reprClass · 0.85

Tested by

no test coverage detected