Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/src/commit/a85ebd86aab26dd707d456ab07a0e27b18068eb3/tests/subliminal_patch/test_subtitle.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/tests/subliminal_patch/test_subtitle.py

30 lines
866 B

from subliminal_patch import subtitle
def test_guess_matches_w_edition_only_video(movies):
movie = movies["dune"]
movie.edition = "Director's Cut"
matches = subtitle.guess_matches(movie, {})
assert "edition" not in matches
def test_guess_matches_w_edition_only_guess(movies):
movie = movies["dune"]
movie.edition = None
matches = subtitle.guess_matches(movie, {"edition": "Director's Cut"})
assert "edition" not in matches
def test_guess_matches_w_edition_both(movies):
movie = movies["dune"]
movie.edition = "Director's Cut"
matches = subtitle.guess_matches(movie, {"edition": "Director's Cut"})
assert "edition" in matches
def test_guess_matches_w_edition_both_empty(movies):
movie = movies["dune"]
movie.edition = None
matches = subtitle.guess_matches(movie, {})
assert "edition" in matches