From 2e90c663908e887f9fdfcf591cf36470d42e1055 Mon Sep 17 00:00:00 2001 From: Rafal Makagon Date: Thu, 13 Jun 2019 12:21:34 +0200 Subject: [PATCH] Remove not used errors --- src/galaxy/api/errors.py | 12 ------------ tests/test_authenticate.py | 6 +----- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/galaxy/api/errors.py b/src/galaxy/api/errors.py index 5a23002..6564b48 100644 --- a/src/galaxy/api/errors.py +++ b/src/galaxy/api/errors.py @@ -54,18 +54,6 @@ class AccessDenied(ApplicationError): def __init__(self, data=None): super().__init__(106, "Access denied", data) -class ParentalControlBlock(ApplicationError): - def __init__(self, data=None): - super().__init__(107, "Parental control block", data) - -class DeviceBlocked(ApplicationError): - def __init__(self, data=None): - super().__init__(108, "Device blocked", data) - -class RegionBlocked(ApplicationError): - def __init__(self, data=None): - super().__init__(109, "Region blocked", data) - class FailedParsingManifest(ApplicationError): def __init__(self, data=None): super().__init__(200, "Failed parsing manifest", data) diff --git a/tests/test_authenticate.py b/tests/test_authenticate.py index 4c25ba5..6cb96a6 100644 --- a/tests/test_authenticate.py +++ b/tests/test_authenticate.py @@ -6,8 +6,7 @@ import pytest from galaxy.api.types import Authentication from galaxy.api.errors import ( UnknownError, InvalidCredentials, NetworkError, LoggedInElsewhere, ProtocolError, - BackendNotAvailable, BackendTimeout, BackendError, TemporaryBlocked, Banned, AccessDenied, - ParentalControlBlock, DeviceBlocked, RegionBlocked + BackendNotAvailable, BackendTimeout, BackendError, TemporaryBlocked, Banned, AccessDenied ) def test_success(plugin, readline, write): @@ -44,9 +43,6 @@ def test_success(plugin, readline, write): pytest.param(TemporaryBlocked, 104, "Temporary blocked", id="temporary_blocked"), pytest.param(Banned, 105, "Banned", id="banned"), pytest.param(AccessDenied, 106, "Access denied", id="access_denied"), - pytest.param(ParentalControlBlock, 107, "Parental control block", id="parental_control_clock"), - pytest.param(DeviceBlocked, 108, "Device blocked", id="device_blocked"), - pytest.param(RegionBlocked, 109, "Region blocked", id="region_blocked") ]) def test_failure(plugin, readline, write, error, code, message): request = {