(self, credentials=None, client_info=None, client_options=None, **kwargs)
| 15 | class TestCloudTranslation(unittest.TestCase): |
| 16 | class FakeClient: |
| 17 | def __init__(self, credentials=None, client_info=None, client_options=None, **kwargs): |
| 18 | self.credentials = credentials |
| 19 | self.client_options = client_options |
| 20 | |
| 21 | class FakeConnection(): |
| 22 | def __init__(self, user_agent): |
| 23 | self.user_agent = user_agent |
| 24 | if (client_info is not None): |
| 25 | self._connection = FakeConnection(client_info.user_agent) |
| 26 | |
| 27 | @patch("google.cloud.translate_v2.Client", new=FakeClient) |
| 28 | def test_default_credentials_v2(self): |
nothing calls this directly
no test coverage detected