We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa0a56 commit 4b4bdefCopy full SHA for 4b4bdef
betterproto/tests/inputs/casing/test_casing.py
@@ -0,0 +1,16 @@
1
+import betterproto.tests.output_betterproto.casing.casing as casing
2
+from betterproto.tests.output_betterproto.casing.casing import Test
3
+
4
5
+def test_message_attributes():
6
+ message = Test()
7
+ assert hasattr(message, 'snake_case_message'), 'snake_case field name is same in python'
8
+ assert hasattr(message, 'camel_case'), 'CamelCase field is snake_case in python'
9
10
11
+def test_message_casing():
12
+ assert hasattr(casing, 'SnakeCaseMessage'), 'snake_case Message name is converted to CamelCase in python'
13
14
15
+def test_enum_casing():
16
+ assert hasattr(casing, 'MyEnum'), 'snake_case Enum name is converted to CamelCase in python'
0 commit comments