File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ # pylint: disable=too-many-arguments
1516"""Annotations management for Vision API responses."""
1617
1718import six
Original file line number Diff line number Diff line change @@ -105,29 +105,8 @@ def test_call_annotate_with_no_parameters(self):
105105 http_api ._connection .api_request .assert_not_called ()
106106
107107 def test_call_annotate_with_pb_requests_results (self ):
108- import json
109108 from google .cloud .proto .vision .v1 import image_annotator_pb2
110109
111- sent = {
112- 'requests' : [
113- {
114- 'image' : {
115- 'content' : B64_IMAGE_CONTENT
116- },
117- 'features' : [
118- {
119- 'maxResults' : 2 ,
120- 'type' : 'CROP_HINTS'
121- },
122- ],
123- 'imageContext' : {
124- 'cropHintsParams' : {
125- 'aspectRatios' : [1.3333 , 1.7777 ]
126- },
127- },
128- },
129- ],
130- }
131110 client = mock .Mock (spec_set = ['_connection' ])
132111
133112 feature_type = image_annotator_pb2 .Feature .CROP_HINTS
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ def test_make_http_client(self):
7575 credentials = _make_credentials ()
7676 client = self ._make_one (project = PROJECT , credentials = credentials ,
7777 use_gax = False )
78- vision_api = client ._vision_api
7978 self .assertIsInstance (client ._vision_api , _HTTPVisionAPI )
8079
8180 def test_face_annotation (self ):
You can’t perform that action at this time.
0 commit comments