refactor: move upstream DAT fetching to datfetch

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:42:18 +01:00
1 parent 3df7a60e43
commit d1b0c77039
7 files changed
+122 -113

No files matched your search

+1 -1
View File
@@ -922,7 +922,7 @@ class EveryGitHubApiCallerSendsTheToken(unittest.TestCase):
for path in [*scripts.rglob("*.py"), *scripts.rglob("*.sh")]
if "api.github.com" in (source := path.read_text(encoding="utf-8"))
# arcade_parent_importer names API URLs and sends them through
# romset_dat_importer._api_json, which holds the token, and the
# datfetch.api_json, which holds the token, and the
# scrapers through base_scraper.github_json, the rest through
# core.upstream.fetch_body or forge_headers.
and ("Request(" in source or "urlopen(" in source or path.suffix == ".sh")