Commit 29c27d43 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint warnings

parent af309300
......@@ -21,7 +21,6 @@ import os
import zoe_api.auth.base
import zoe_api.exceptions
from zoe_lib.config import get_conf
log = logging.getLogger(__name__)
......
......@@ -21,7 +21,7 @@ import logging
import tornado.web
import tornado.escape
from zoe_api.api_endpoint import APIEndpoint
from zoe_api.api_endpoint import APIEndpoint # pylint: disable=unused-import
from zoe_api.auth.base import BaseAuthenticator
from zoe_api.exceptions import ZoeAuthException
......
......@@ -43,7 +43,7 @@ class TestAPIEndpoint:
api = APIEndpoint(master_api, sql_manager)
if master_api.fails:
with pytest.raises(ZoeException):
api.statistics_scheduler('nouser', 'norole')
api.statistics_scheduler()
else:
ret = api.statistics_scheduler('nouser', 'norole')
ret = api.statistics_scheduler()
assert isinstance(ret, dict)
......@@ -145,7 +145,7 @@ class ZoeWebRequestHandler(ZoeRequestHandler):
return None
return user
def error_page(self, error_message: str, status: int=400):
def error_page(self, error_message: str, status: int = 400):
"""Generate an error page."""
self.set_status(status)
self.render('error.jinja2', error=error_message)
......@@ -18,13 +18,13 @@ This package contains the Zoe library, with modules used by more than one of the
import requests
from zoe_lib.version import ZOE_VERSION, ZOE_API_VERSION
from zoe_lib.exceptions import ZoeAPIException
from .info import ZoeInfoAPI
from .validation import ZoeValidationAPI
from .executions import ZoeExecutionsAPI
from .services import ZoeServiceAPI
from .statistics import ZoeStatisticsAPI
from zoe_lib.version import ZOE_VERSION, ZOE_API_VERSION
from zoe_lib.exceptions import ZoeAPIException
class ZoeAPI:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment