Skip to content

Commit 0fe388d

Browse files
Make the linter happy, round 2.
1 parent 2c71e8d commit 0fe388d

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

vision/google/cloud/vision/annotations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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

1718
import six

vision/unit_tests/test__http.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

vision/unit_tests/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)