File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def test__to_gapic_image_uri(self):
7272 from google .cloud .vision .image import Image
7373 from google .cloud .grpc .vision .v1 import image_annotator_pb2
7474
75- image_uri = b 'gs://1234/34.jpg'
75+ image_uri = 'gs://1234/34.jpg'
7676 client = object ()
7777 image = Image (client , source_uri = image_uri )
7878 image_pb = self ._call_fut (image )
Original file line number Diff line number Diff line change @@ -59,11 +59,12 @@ def test_make_gax_client(self):
5959 from google .cloud .vision ._gax import _GAPICVisionAPI
6060
6161 credentials = _make_credentials ()
62- with mock .patch ('google.cloud.vision.client._GAPICVisionAPI' ):
63- client = self ._make_one (project = PROJECT , credentials = credentials ,
64- use_gax = None )
62+ client = self ._make_one (project = PROJECT , credentials = credentials ,
63+ use_gax = None )
6564 client ._connection = _Connection ()
66- self .assertIsInstance (client ._vision_api , _GAPICVisionAPI )
65+ with mock .patch ('google.cloud.vision.client._GAPICVisionAPI' ,
66+ spec = True ):
67+ self .assertIsInstance (client ._vision_api , _GAPICVisionAPI )
6768
6869 def test_make_http_client (self ):
6970 from google .cloud .vision ._http import _HTTPVisionAPI
You can’t perform that action at this time.
0 commit comments