MCPcopy Create free account
hub / github.com/Kaggle/docker-python / __init__

Method __init__

tests/test_translation.py:17–25  ·  view source on GitHub ↗
(self, credentials=None, client_info=None, client_options=None, **kwargs)

Source from the content-addressed store, hash-verified

15class 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):

Callers

nothing calls this directly

Calls 1

FakeConnectionClass · 0.70

Tested by

no test coverage detected