test: delete slow, timing-based and redundant tests

This commit is contained in:
imSp4rky
2026-12-05 15:20:05 -07:00
parent 783a2fc185
commit 3a0a74e694
292 changed files with 153 additions and 15174 deletions
-13
View File
@@ -61,13 +61,6 @@ def test_ascii_filenames_transliterate_both_spellings(name: str, expected: str)
assert sanitize_filename(name, unicode=False) == expected
def test_config_option_decides_when_unicode_is_not_passed(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(config, "unicode_filenames", True)
assert sanitize_filename(THAI) == THAI
monkeypatch.setattr(config, "unicode_filenames", False)
assert sanitize_filename(THAI).isascii()
def test_sanitising_a_name_again_does_not_change_it() -> None:
# The removed "?" sits between the letter and its mark.
once = sanitize_filename("e?\u0301", unicode=True)
@@ -111,12 +104,6 @@ def test_episode_folder_from_the_series_template_keeps_the_multi_episode_separat
assert episode.get_filename(StubMediaInfo()) == "A.&.B.and.C.S01E02"
@pytest.mark.parametrize("value", [["&"], [], "", False, {"&": None}, {"": "and"}, {1: "one"}, {"&": True}])
def test_a_bad_filename_replacements_value_is_an_error(value) -> None:
with pytest.raises(SystemExit, match="filename_replacements"):
Config(filename_replacements=value)
def test_filename_replacements_default_to_empty_and_use_nfc_keys(monkeypatch) -> None:
assert Config().filename_replacements == {}
monkeypatch.setattr(