MCPcopy
hub / github.com/msgspec/msgspec / test_repr_omit_defaults_empty

Method test_repr_omit_defaults_empty

tests/unit/test_struct.py:723–729  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

721 assert x.__rich_repr__() == [("a", 1), ("b", "y")]
722
723 def test_repr_omit_defaults_empty(self):
724 class Test(Struct, repr_omit_defaults=True):
725 pass
726
727 x = Test()
728 assert repr(x) == "Test()"
729 assert x.__rich_repr__() == []
730
731 def test_repr_omit_defaults_one_field(self):
732 class Test(Struct, repr_omit_defaults=True):

Callers

nothing calls this directly

Calls 1

TestClass · 0.70

Tested by

no test coverage detected