15 lines
430 B
Python
15 lines
430 B
Python
import pytest
|
|
from videos.sources.imdb import lookup_video_from_imdb
|
|
|
|
|
|
@pytest.mark.skip(reason="Should not hit IMDB api in CI")
|
|
def test_lookup_imdb_without_tt():
|
|
metadata = lookup_video_from_imdb("8946378")
|
|
assert not metadata.imdb_id
|
|
|
|
|
|
@pytest.mark.skip(reason="Should not hit IMDB api in CI")
|
|
def test_lookup_imdb_with_tt():
|
|
metadata = lookup_video_from_imdb("tt8946378")
|
|
assert metadata.title == "Knives Out"
|