Move lookup modules to approp app
This commit is contained in:
0
tests/videos_tests/__init__.py
Normal file
0
tests/videos_tests/__init__.py
Normal file
11
tests/videos_tests/test_imdb.py
Normal file
11
tests/videos_tests/test_imdb.py
Normal 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"
|
||||
Reference in New Issue
Block a user