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

Class FakeClient

tests/test_video_intelligence.py:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14class TestCloudVideoIntelligence(unittest.TestCase):
15 class FakeClient:
16 def __init__(self, credentials=None, client_info=None, **kwargs):
17 self.credentials = credentials
18
19 class FakeConnection():
20 def __init__(self, user_agent):
21 self.user_agent = user_agent
22 if (client_info is not None):
23 self._connection = FakeConnection(client_info.user_agent)
24
25 @patch("google.cloud.videointelligence.VideoIntelligenceServiceClient", new=FakeClient)
26 def test_default_credentials(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected