[tests] Speed up tests

This commit is contained in:
2026-03-02 09:19:36 -05:00
parent 9848e5874d
commit d1844c01a0
5 changed files with 180 additions and 18 deletions

View File

@ -1,10 +1,14 @@
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")
print(metadata.__dict__)
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"