@@ -218,20 +218,23 @@ def test_tmdb_process_episodes(self):
218218 "still_path" : "/path/to/still1.jpg" ,
219219 "name" : "Pilot" ,
220220 "overview" : "overview of the episode" ,
221+ "runtime" : 23 ,
221222 },
222223 {
223224 "episode_number" : 2 ,
224225 "air_date" : "2008-01-27" ,
225226 "still_path" : "/path/to/still2.jpg" ,
226227 "name" : "Cat's in the Bag..." ,
227228 "overview" : "overview of the episode" ,
229+ "runtime" : 23 ,
228230 },
229231 {
230232 "episode_number" : 3 ,
231233 "air_date" : "2008-02-10" ,
232234 "still_path" : "/path/to/still3.jpg" ,
233235 "name" : "...And the Bag's in the River" ,
234236 "overview" : "overview of the episode" ,
237+ "runtime" : 23 ,
235238 },
236239 ],
237240 }
@@ -413,15 +416,10 @@ def test_hardcover_book(self):
413416 response = hardcover .book ("377193" )
414417 self .assertEqual (response ["title" ], "The Great Gatsby" )
415418 self .assertEqual (response ["details" ]["author" ], "F. Scott Fitzgerald" )
416- self .assertEqual (response ["details" ]["publisher" ], "Penguin UK" )
417- self .assertEqual (response ["details" ]["publish_date" ], "1920-06-01" )
418- self .assertEqual (response ["details" ]["number_of_pages" ], 217 )
419- self .assertEqual (response ["details" ]["format" ], "Paperback" )
420419 # Testing that we have some of the expected genres
421420 self .assertIn ("Fiction" , response ["genres" ])
422421 self .assertIn ("Young Adult" , response ["genres" ])
423422 self .assertIn ("Classics" , response ["genres" ])
424- # Rating is approximately 4.21 * 2 = 8.42
425423 self .assertAlmostEqual (response ["score" ], 7.4 , delta = 0.1 )
426424
427425 def test_hardcover_book_unknown (self ):
0 commit comments