test_imdb.py 327 B

12345678910
  1. from videos.sources.imdb import lookup_video_from_imdb
  2. def test_lookup_imdb_without_tt():
  3. metadata = lookup_video_from_imdb("8946378")
  4. print(metadata.__dict__)
  5. assert not metadata.imdb_id
  6. def test_lookup_imdb_with_tt():
  7. metadata = lookup_video_from_imdb("tt8946378")
  8. assert metadata.title == "Knives Out"