Since http://jenkins.unglueit.com/job/regluit/2912/console, the cover images from Google Books api are now starting with http and not https, which is strange.

This fix allows the test to pass for http or https book covers
pull/1/head
Raymond Yee 2014-12-08 10:09:05 -08:00
parent 792659c325
commit 95958847ed
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class SearchTests(TestCase):
self.assertTrue(r.has_key('author'))
self.assertTrue(r.has_key('description'))
self.assertTrue(r.has_key('cover_image_thumbnail'))
self.assertTrue(r['cover_image_thumbnail'].startswith('https'))
self.assertTrue(r['cover_image_thumbnail'].startswith('https') or r['cover_image_thumbnail'].startswith('http'))
self.assertTrue(r.has_key('publisher'))
self.assertTrue(r.has_key('isbn_13'))
self.assertTrue(r.has_key('googlebooks_id'))