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

Class CasingTest

tests/test_features.py:196–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194def test_json_casing():
195 @dataclass
196 class CasingTest(betterproto.Message):
197 pascal_case: int = betterproto.int32_field(1)
198 camel_case: int = betterproto.int32_field(2)
199 snake_case: int = betterproto.int32_field(3)
200 kabob_case: int = betterproto.int32_field(4)
201
202 # Parsing should accept almost any input
203 test = CasingTest().from_dict(

Callers 2

test_json_casingFunction · 0.85
test_dict_casingFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_json_casingFunction · 0.68
test_dict_casingFunction · 0.68