mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 10:25:09 +00:00
refactor(remote): keep the session protocol in core/remote_protocol.py
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user