File tree 4 files changed +26
-1
lines changed
4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ def py_input_message(self) -> Optional[MessageCompiler]:
748
748
# comparable with method.input_type
749
749
for msg in self .request .all_messages :
750
750
if (
751
- msg .py_name == name .replace ("." , "" )
751
+ msg .py_name == pythonize_class_name ( name .replace ("." , "" ) )
752
752
and msg .output_file .package == package
753
753
):
754
754
return msg
Original file line number Diff line number Diff line change 18
18
"googletypes_service_returns_googletype" ,
19
19
"example_service" ,
20
20
"empty_service" ,
21
+ "service_uppercase" ,
21
22
}
22
23
23
24
Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ package service_uppercase ;
4
+
5
+ message DoTHINGRequest {
6
+ string name = 1 ;
7
+ repeated string comments = 2 ;
8
+ }
9
+
10
+ message DoTHINGResponse {
11
+ repeated string names = 1 ;
12
+ }
13
+
14
+ service Test {
15
+ rpc DoThing (DoTHINGRequest ) returns (DoTHINGResponse );
16
+ }
Original file line number Diff line number Diff line change
1
+ import inspect
2
+
3
+ from tests .output_betterproto .service_uppercase import TestStub
4
+
5
+
6
+ def test_parameters ():
7
+ sig = inspect .signature (TestStub .do_thing )
8
+ assert len (sig .parameters ) == 5 , "Expected 5 parameters"
You can’t perform that action at this time.
0 commit comments