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
@@ -6,8 +6,9 @@ import zlib
import pytest
from unshackle.core.api import handlers
from unshackle.core.api.errors import APIError, APIErrorCode
from unshackle.core.api.errors import APIError
from unshackle.core.api.handlers import load_client_cookies
from unshackle.core.remote_protocol import APIErrorCode
COOKIE_FILE = "\n".join(
[
+2 -1
View File
@@ -57,7 +57,8 @@ def test_a_request_with_no_user_fails_at_once():
def test_no_user_message_is_an_authentication_error():
from unshackle.core.api.errors import APIErrorCode, categorize_exception
from unshackle.core.api.errors import categorize_exception
from unshackle.core.remote_protocol import APIErrorCode
assert categorize_exception(RuntimeError(NO_USER_MESSAGE)).error_code == APIErrorCode.AUTH_FAILED