Skip to content

Commit

Permalink
[qa] autoflake
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Aug 7, 2024
1 parent 15e8f02 commit 198bf22
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 29 deletions.
22 changes: 0 additions & 22 deletions gazu/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,89 +3,67 @@ class HostException(Exception):
Error raised when host is not valid.
"""

pass


class AuthFailedException(Exception):
"""
Error raised when user credentials are wrong.
"""

pass


class NotAuthenticatedException(Exception):
"""
Error raised when a 401 error (not authenticated) is sent by the API.
"""

pass


class NotAllowedException(Exception):
"""
Error raised when a 403 error (not authorized) is sent by the API.
"""

pass


class MethodNotAllowedException(Exception):
"""
Error raised when a 405 error (method not handled) is sent by the API.
"""

pass


class RouteNotFoundException(Exception):
"""
Error raised when a 404 error (not found) is sent by the API.
"""

pass


class ServerErrorException(Exception):
"""
Error raised when a 500 error (server error) is sent by the API.
"""

pass


class ParameterException(Exception):
"""
Error raised when a 400 error (argument error) is sent by the API.
"""

pass


class UploadFailedException(Exception):
"""
Error raised when an error while uploading a file, mainly to handle cases
where processing that occurs on the remote server fails.
"""

pass


class TooBigFileException(Exception):
"""
Error raised when a 413 error (payload too big error) is sent by the API.
"""

pass


class TaskStatusNotFoundException(Exception):
"""
Error raised when a task status is not found.
"""

pass


class DownloadFileException(Exception):
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import datetime
import json
import sys

import unittest
import requests_mock
import gazu
from gazu.__version__ import __version__

from gazu import client as raw, set_event_host
from gazu import client as raw
from gazu.exception import (
RouteNotFoundException,
AuthFailedException,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import gazu.shot
import gazu.project
import requests_mock
from utils import mock_route, fakeid
from utils import mock_route


class CastingTestCase(unittest.TestCase):
Expand Down
2 changes: 0 additions & 2 deletions tests/test_edit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import unittest
import json
import requests_mock
import os

import gazu.client
import gazu.edit
Expand Down
1 change: 0 additions & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from gazu.helpers import normalize_model_parameter
import unittest
import requests_mock
import gazu.client
Expand Down
1 change: 0 additions & 1 deletion tests/test_task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from re import T
import unittest
import json
import requests_mock
Expand Down

0 comments on commit 198bf22

Please sign in to comment.