Move lookup modules to approp app

This commit is contained in:
2023-03-04 16:04:52 -05:00
parent 00aa2e892f
commit 90b7be286c
13 changed files with 10 additions and 11 deletions

View File

View File

@ -0,0 +1,11 @@
import pytest
from vrobbler.apps.videos.imdb import lookup_video_from_imdb
@pytest.mark.skip(reason="Need to sort out third party API testing")
def test_lookup_imdb_bad_id(caplog):
data = lookup_video_from_imdb('3409324')
assert data is None
assert caplog.records[0].levelname == "WARNING"
assert caplog.records[0].msg == "IMDB ID should begin with 'tt' 3409324"