1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-29 11:06:02 +00:00
bazarr/tests/subliminal_patch/test_mods.py

17 lines
393 B
Python
Raw Normal View History

2022-10-12 23:04:42 +00:00
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)