refactor(remote): keep the session protocol in core/remote_protocol.py

This commit is contained in:
imSp4rky
2026-11-24 16:20:33 -07:00
parent 6c334d31a7
commit 8d5234130a
31 changed files with 797 additions and 305 deletions
+2 -1
View File
@@ -209,7 +209,8 @@ def test_the_worker_keeps_the_code_of_an_api_error(tmp_path, monkeypatch):
import json
from unshackle.core.api import download_worker
from unshackle.core.api.errors import APIError, APIErrorCode
from unshackle.core.api.errors import APIError
from unshackle.core.remote_protocol import APIErrorCode
def refuse(*args, **kwargs):
raise APIError(APIErrorCode.INVALID_PARAMETERS, "Invalid workers: expected a number, not a boolean")