refactor(api): decide the proxy of an API request in one api_proxy module

This commit is contained in:
imSp4rky
2026-12-02 20:04:07 -07:00
parent d23324e27b
commit fef6898823
8 changed files with 617 additions and 468 deletions
+1 -1
View File
@@ -928,7 +928,7 @@ def test_the_manager_keeps_a_cancelled_job_cancelled(
jobs.mkdir()
monkeypatch.setattr(tempfile, "tempdir", str(jobs))
monkeypatch.setattr(sys, "executable", str(worker_script(titles.server.url, tmp_path)))
monkeypatch.setattr("unshackle.core.api.job_admission.check_job_start", lambda *args: None)
monkeypatch.setattr("unshackle.core.api.api_proxy.recheck", lambda *args: None)
monkeypatch.setattr(download_manager, "record_job_history", lambda job: None)
async def cancel() -> Any: