You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raise ValueError('If the `request` argument is set, then none of '
'the individual field arguments should be set.')
any([{{ method.flattened_fields.values()|join(", ", attribute="name") }}]) in the code above is checking for non-zero, but we should be checking if both request and a flattened field are not None.
The text was updated successfully, but these errors were encountered:
parthea
changed the title
Generated test_*_flattened_error test fails when request message contains nested message
Generated test_*_flattened_error test fails when the first field of a request message is a nested message
Nov 22, 2024
Generated unit tests, specifically
test_*_flattened_error
, for the following proto file fail with error belowThe test expects ValueError when both
request
and individual fields are set on the client method.An exception should be raised if both
request
and a field are set as per the following code.gapic-generator-python/gapic/templates/%namespace/%name_%version/%sub/services/%service/_client_macros.j2
Lines 91 to 96 in 5a37094
any([{{ method.flattened_fields.values()|join(", ", attribute="name") }}])
in the code above is checking for non-zero, but we should be checking if both request and a flattened field are not None.The text was updated successfully, but these errors were encountered: