Skip to content

Commit 836b6e2

Browse files
committed
fix broken test
1 parent 4b141d6 commit 836b6e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_example.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ def setUp(self):
3232
def test_search_google_images(self):
3333
client = GoogleSearchResults({"q": "coffe", "tbm": "isch"})
3434
for image_result in client.get_json()['images_results']:
35-
link = image_result["original"]
3635
try:
37-
print("link: " + link)
36+
link = image_result["original"]
37+
print("link is found: " + link)
38+
# uncomment the line below to down the original image
3839
# wget.download(link, '.')
3940
except:
41+
print("link is not found.")
4042
pass
4143
# https://github.com/serpapi/showcase-serpapi-tensorflow-keras-image-training/blob/master/fetch.py
4244

0 commit comments

Comments
 (0)