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/248e49de76c4a94e9dc6db9166521b8527f476bc/tests/subliminal_patch/test_mods.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/tests/subliminal_patch/test_mods.py

17 lines
393 B

import pytest
import os
from subliminal_patch import Subtitle
@pytest.fixture
def test_file(data):
return os.path.join(data, "subs_for_mods.srt")
def test_apply_mods_remove_hi(languages, test_file):
sub = Subtitle(languages["en"], mods=["remove_HI", "OCR_fixes"])
with open(test_file, "rb") as f:
sub.content = f.read()
assert sub.get_modified_content(debug=True)