MCPcopy
hub / github.com/danielgtaylor/python-betterproto / TestMessage

Class TestMessage

tests/test_features.py:311–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309def test_to_json_default_values():
310 @dataclass
311 class TestMessage(betterproto.Message):
312 some_int: int = betterproto.int32_field(1)
313 some_double: float = betterproto.double_field(2)
314 some_str: str = betterproto.string_field(3)
315 some_bool: bool = betterproto.bool_field(4)
316
317 # Empty dict
318 test = TestMessage().from_dict({})

Callers 3

test_equality_comparisonFunction · 0.70

Calls

no outgoing calls

Tested by 3

test_equality_comparisonFunction · 0.56