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 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # pylint: disable=too-many-arguments
15
16
"""Annotations management for Vision API responses."""
16
17
17
18
import six
Original file line number Diff line number Diff line change @@ -105,29 +105,8 @@ def test_call_annotate_with_no_parameters(self):
105
105
http_api ._connection .api_request .assert_not_called ()
106
106
107
107
def test_call_annotate_with_pb_requests_results (self ):
108
- import json
109
108
from google .cloud .proto .vision .v1 import image_annotator_pb2
110
109
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
- }
131
110
client = mock .Mock (spec_set = ['_connection' ])
132
111
133
112
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):
75
75
credentials = _make_credentials ()
76
76
client = self ._make_one (project = PROJECT , credentials = credentials ,
77
77
use_gax = False )
78
- vision_api = client ._vision_api
79
78
self .assertIsInstance (client ._vision_api , _HTTPVisionAPI )
80
79
81
80
def test_face_annotation (self ):
You can’t perform that action at this time.
0 commit comments