mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 22:45:09 +00:00
refactor(api): decide the proxy of an API request in one api_proxy module
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user