File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def test_call_vision_request(self):
3535 from google .cloud .vision .feature import FeatureTypes
3636 from google .cloud .vision .image import Image
3737
38- client = {}
38+ client = object ()
3939 image = Image (client , content = IMAGE_CONTENT )
4040 feature = Feature (feature_type = FeatureTypes .FACE_DETECTION ,
4141 max_results = 3 )
@@ -51,15 +51,15 @@ def test_call_vision_request(self):
5151 def test_call_vision_request_with_not_feature (self ):
5252 from google .cloud .vision .image import Image
5353
54- client = {}
54+ client = object ()
5555 image = Image (client , content = IMAGE_CONTENT )
5656 with self .assertRaises (TypeError ):
5757 self ._call_fut (image , 'nonsensefeature' )
5858
5959 def test_call_vision_request_with_list_bad_features (self ):
6060 from google .cloud .vision .image import Image
6161
62- client = {}
62+ client = object ()
6363 image = Image (client , content = IMAGE_CONTENT )
6464 with self .assertRaises (TypeError ):
6565 self ._call_fut (image , ['nonsensefeature' ])
You can’t perform that action at this time.
0 commit comments