@@ -171,6 +171,7 @@ def test_echo_api_version_header(transport_name):
171171 type (client .transport .echo ),
172172 '__call__'
173173 ) as call :
174+ call .return_value = gs_echo .EchoResponse ()
174175 client .echo ()
175176
176177 # Establish that the api version header was sent.
@@ -196,6 +197,7 @@ def test_echo_error_details_api_version_header(transport_name):
196197 type (client .transport .echo_error_details ),
197198 '__call__'
198199 ) as call :
200+ call .return_value = gs_echo .EchoErrorDetailsResponse ()
199201 client .echo_error_details ()
200202
201203 # Establish that the api version header was sent.
@@ -221,6 +223,7 @@ def test_fail_echo_with_details_api_version_header(transport_name):
221223 type (client .transport .fail_echo_with_details ),
222224 '__call__'
223225 ) as call :
226+ call .return_value = gs_echo .FailEchoWithDetailsResponse ()
224227 client .fail_echo_with_details ()
225228
226229 # Establish that the api version header was sent.
@@ -246,6 +249,7 @@ def test_expand_api_version_header(transport_name):
246249 type (client .transport .expand ),
247250 '__call__'
248251 ) as call :
252+ call .return_value = gs_echo .EchoResponse ()
249253 client .expand ()
250254
251255 # Establish that the api version header was sent.
@@ -271,6 +275,7 @@ def test_collect_api_version_header(transport_name):
271275 type (client .transport .collect ),
272276 '__call__'
273277 ) as call :
278+ call .return_value = gs_echo .EchoResponse ()
274279 client .collect ()
275280
276281 # Establish that the api version header was sent.
@@ -296,6 +301,7 @@ def test_chat_api_version_header(transport_name):
296301 type (client .transport .chat ),
297302 '__call__'
298303 ) as call :
304+ call .return_value = gs_echo .EchoResponse ()
299305 client .chat ()
300306
301307 # Establish that the api version header was sent.
@@ -321,6 +327,7 @@ def test_paged_expand_api_version_header(transport_name):
321327 type (client .transport .paged_expand ),
322328 '__call__'
323329 ) as call :
330+ call .return_value = gs_echo .PagedExpandResponse ()
324331 client .paged_expand ()
325332
326333 # Establish that the api version header was sent.
@@ -346,6 +353,7 @@ def test_paged_expand_legacy_api_version_header(transport_name):
346353 type (client .transport .paged_expand_legacy ),
347354 '__call__'
348355 ) as call :
356+ call .return_value = gs_echo .PagedExpandResponse ()
349357 client .paged_expand_legacy ()
350358
351359 # Establish that the api version header was sent.
@@ -371,6 +379,7 @@ def test_paged_expand_legacy_mapped_api_version_header(transport_name):
371379 type (client .transport .paged_expand_legacy_mapped ),
372380 '__call__'
373381 ) as call :
382+ call .return_value = gs_echo .PagedExpandLegacyMappedResponse ()
374383 client .paged_expand_legacy_mapped ()
375384
376385 # Establish that the api version header was sent.
@@ -396,6 +405,7 @@ def test_wait_api_version_header(transport_name):
396405 type (client .transport .wait ),
397406 '__call__'
398407 ) as call :
408+ call .return_value = operations_pb2 .Operation ()
399409 client .wait ()
400410
401411 # Establish that the api version header was sent.
@@ -421,6 +431,7 @@ def test_block_api_version_header(transport_name):
421431 type (client .transport .block ),
422432 '__call__'
423433 ) as call :
434+ call .return_value = gs_echo .BlockResponse ()
424435 client .block ()
425436
426437 # Establish that the api version header was sent.
0 commit comments