@@ -584,32 +584,32 @@ def test_registered_type(self):
584584
585585@mock .patch ("google.cloud.logging._gapic.LoggingServiceV2Client" , autospec = True )
586586def test_make_logging_api (gapic_client ):
587- client = mock .Mock (spec = ["_credentials" ])
587+ client = mock .Mock (spec = ["_credentials" , "_client_info" ])
588588 api = _gapic .make_logging_api (client )
589589 assert api ._client == client
590590 assert api ._gapic_api == gapic_client .return_value
591591 gapic_client .assert_called_once_with (
592- credentials = client ._credentials , client_info = _gapic . _CLIENT_INFO
592+ credentials = client ._credentials , client_info = client . _client_info
593593 )
594594
595595
596596@mock .patch ("google.cloud.logging._gapic.MetricsServiceV2Client" , autospec = True )
597597def test_make_metrics_api (gapic_client ):
598- client = mock .Mock (spec = ["_credentials" ])
598+ client = mock .Mock (spec = ["_credentials" , "_client_info" ])
599599 api = _gapic .make_metrics_api (client )
600600 assert api ._client == client
601601 assert api ._gapic_api == gapic_client .return_value
602602 gapic_client .assert_called_once_with (
603- credentials = client ._credentials , client_info = _gapic . _CLIENT_INFO
603+ credentials = client ._credentials , client_info = client . _client_info
604604 )
605605
606606
607607@mock .patch ("google.cloud.logging._gapic.ConfigServiceV2Client" , autospec = True )
608608def test_make_sinks_api (gapic_client ):
609- client = mock .Mock (spec = ["_credentials" ])
609+ client = mock .Mock (spec = ["_credentials" , "_client_info" ])
610610 api = _gapic .make_sinks_api (client )
611611 assert api ._client == client
612612 assert api ._gapic_api == gapic_client .return_value
613613 gapic_client .assert_called_once_with (
614- credentials = client ._credentials , client_info = _gapic . _CLIENT_INFO
614+ credentials = client ._credentials , client_info = client . _client_info
615615 )
0 commit comments