feat(providers): fill the western IDs of an AniList match from the anime-lists ID map

This commit is contained in:
imSp4rky
2026-11-29 10:47:22 -07:00
parent efd8ca65c7
commit 6758d9e4fa
13 changed files with 370 additions and 19 deletions
+7
View File
@@ -14,6 +14,7 @@ import pytest
from unshackle.core import binaries
from unshackle.core import session as http_session
from unshackle.core.config import config
from unshackle.core.providers import anilist
from unshackle.core.proxies.proxy import CATALOGUES
from unshackle.core.update_checker import UpdateChecker
@@ -46,6 +47,12 @@ def no_update_check(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(UpdateChecker, "check_for_updates_sync", lambda *args, **kwargs: None)
@pytest.fixture(autouse=True)
def no_anime_id_map(monkeypatch: pytest.MonkeyPatch) -> None:
"""Keep the AniList ID map download and its cache file out of every test."""
monkeypatch.setattr(anilist, "western_id_map", dict)
@pytest.fixture(autouse=True)
def client_process(monkeypatch: pytest.MonkeyPatch) -> None:
"""Start as a client process, so a test that ran serve or a job worker cannot turn response bodies off."""