From 0fe388dcc507c806d83314da0870fe2c78929f3e Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Fri, 24 Feb 2017 19:45:15 -0800 Subject: [PATCH] Make the linter happy, round 2. --- vision/google/cloud/vision/annotations.py | 1 + vision/unit_tests/test__http.py | 21 --------------------- vision/unit_tests/test_client.py | 1 - 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/vision/google/cloud/vision/annotations.py b/vision/google/cloud/vision/annotations.py index 67cf51db9137..eed9ebdc5d61 100644 --- a/vision/google/cloud/vision/annotations.py +++ b/vision/google/cloud/vision/annotations.py @@ -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 diff --git a/vision/unit_tests/test__http.py b/vision/unit_tests/test__http.py index 33650d7ac4ea..eae6a6506147 100644 --- a/vision/unit_tests/test__http.py +++ b/vision/unit_tests/test__http.py @@ -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 diff --git a/vision/unit_tests/test_client.py b/vision/unit_tests/test_client.py index 373fc5634f8c..5fc69ec65ab1 100644 --- a/vision/unit_tests/test_client.py +++ b/vision/unit_tests/test_client.py @@ -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):