Skip to content

Commit 23fd960

Browse files
committed
Switch from {} to object().
1 parent b52cf2a commit 23fd960

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vision/unit_tests/test__http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_call_vision_request(self):
3535
from google.cloud.vision.feature import FeatureTypes
3636
from google.cloud.vision.image import Image
3737

38-
client = {}
38+
client = object()
3939
image = Image(client, content=IMAGE_CONTENT)
4040
feature = Feature(feature_type=FeatureTypes.FACE_DETECTION,
4141
max_results=3)
@@ -51,15 +51,15 @@ def test_call_vision_request(self):
5151
def test_call_vision_request_with_not_feature(self):
5252
from google.cloud.vision.image import Image
5353

54-
client = {}
54+
client = object()
5555
image = Image(client, content=IMAGE_CONTENT)
5656
with self.assertRaises(TypeError):
5757
self._call_fut(image, 'nonsensefeature')
5858

5959
def test_call_vision_request_with_list_bad_features(self):
6060
from google.cloud.vision.image import Image
6161

62-
client = {}
62+
client = object()
6363
image = Image(client, content=IMAGE_CONTENT)
6464
with self.assertRaises(TypeError):
6565
self._call_fut(image, ['nonsensefeature'])

0 commit comments

Comments
 (0)