You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
503 B
20 lines
503 B
2 years ago
|
from pathlib import Path
|
||
|
|
||
|
from subliminal_patch import core
|
||
|
|
||
|
|
||
|
def test_scan_video_movie(tmpdir):
|
||
|
video_path = Path(tmpdir, "Taxi Driver 1976 Bluray 720p x264.mkv")
|
||
|
video_path.touch()
|
||
|
|
||
|
result = core.scan_video(str(video_path))
|
||
|
assert isinstance(result, core.Movie)
|
||
|
|
||
|
|
||
|
def test_scan_video_episode(tmpdir):
|
||
|
video_path = Path(tmpdir, "The Wire S01E01 Bluray 720p x264.mkv")
|
||
|
video_path.touch()
|
||
|
|
||
|
result = core.scan_video(str(video_path))
|
||
|
assert isinstance(result, core.Episode)
|