| 13 | |
| 14 | class 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): |
nothing calls this directly
no outgoing calls
no test coverage detected