Skip to content

Commit

Permalink
Make the linter happy, round 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer committed Feb 25, 2017
1 parent 2c71e8d commit 0fe388d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
1 change: 1 addition & 0 deletions vision/google/cloud/vision/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# pylint: disable=too-many-arguments
"""Annotations management for Vision API responses."""

import six
Expand Down
21 changes: 0 additions & 21 deletions vision/unit_tests/test__http.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,29 +105,8 @@ def test_call_annotate_with_no_parameters(self):
http_api._connection.api_request.assert_not_called()

def test_call_annotate_with_pb_requests_results(self):
import json
from google.cloud.proto.vision.v1 import image_annotator_pb2

sent = {
'requests': [
{
'image': {
'content': B64_IMAGE_CONTENT
},
'features': [
{
'maxResults': 2,
'type': 'CROP_HINTS'
},
],
'imageContext': {
'cropHintsParams': {
'aspectRatios': [1.3333, 1.7777]
},
},
},
],
}
client = mock.Mock(spec_set=['_connection'])

feature_type = image_annotator_pb2.Feature.CROP_HINTS
Expand Down
1 change: 0 additions & 1 deletion vision/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def test_make_http_client(self):
credentials = _make_credentials()
client = self._make_one(project=PROJECT, credentials=credentials,
use_gax=False)
vision_api = client._vision_api
self.assertIsInstance(client._vision_api, _HTTPVisionAPI)

def test_face_annotation(self):
Expand Down

0 comments on commit 0fe388d

Please sign in to comment.