#11 ALL_CAPS message fields are parsed incorrectly

This commit is contained in:
boukeversteegh 2020-05-25 21:50:30 +02:00
parent 18598e77d4
commit 382fabb96c
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"UPPERCASE": 10
}

View File

@ -0,0 +1,5 @@
syntax = "proto3";
message Test {
int32 UPPER_CAMEL_CASE = 1;
}

View File

@ -0,0 +1,10 @@
from betterproto.tests.output_betterproto.casing_message_field_uppercase.casing_message_field_uppercase import (
Test,
)
def test_message_casing():
message = Test()
assert hasattr(
message, "upper_camel_case"
), "UPPER_CAMEL_CASE attribute is converted to upper_camel_case in python"

View File

@ -9,6 +9,7 @@ tests = {
"import_packages_same_name",
"oneof_enum",
"googletypes_service_returns_empty",
"casing_message_field_uppercase",
}
services = {