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
-10
View File
@@ -47,11 +47,6 @@ def test_clean_keeps_letters_and_digits_of_every_script(title: str, expected: st
assert clean(title) == expected
@pytest.mark.parametrize("title", ["เป็นต่อ", "हिंदी", "进击的巨人", "Война и мир", "The Matrix"])
def test_fuzzy_match_a_title_with_itself(title: str) -> None:
assert fuzzy_match(title, title)
@pytest.mark.parametrize(
("a", "b"),
[
@@ -181,11 +176,6 @@ def tmdb_search(monkeypatch: pytest.MonkeyPatch, results: list[dict], year: int
return (result.external_ids.tmdb_id if result else None), sent
def test_tmdb_tv_search_matches_the_year_on_any_air_date(monkeypatch: pytest.MonkeyPatch) -> None:
_, sent = tmdb_search(monkeypatch, [{"id": 1, "name": "EXAMPLE", "first_air_date": "2016-04-04"}], 2020)
assert sent["year"] == 2020 and "first_air_date_year" not in sent
@pytest.mark.parametrize(("year", "expected"), [(2023, 2), (1999, 1), (2024, 1), (None, 1)])
def test_tmdb_prefers_the_series_that_first_aired_in_the_year_on_a_title_tie(
monkeypatch: pytest.MonkeyPatch, year: int | None, expected: int