forked from kenzuya/unshackle
feat(providers): fill the western IDs of an AniList match from the anime-lists ID map
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user