diff --git a/moulinette/__init__.py b/moulinette/__init__.py index 1dfeb213..0ec41a3c 100755 --- a/moulinette/__init__.py +++ b/moulinette/__init__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -from os import environ from moulinette.core import ( MoulinetteError, Moulinette18n, diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index 3468e029..52023a56 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -17,7 +17,6 @@ from moulinette.cache import open_cachefile from moulinette.core import ( MoulinetteError, MoulinetteLock, - MoulinetteAuthenticationError, MoulinetteValidationError, ) from moulinette.interfaces import BaseActionsMapParser, TO_RETURN_PROP diff --git a/moulinette/authentication.py b/moulinette/authentication.py index f555fd33..e7b98917 100644 --- a/moulinette/authentication.py +++ b/moulinette/authentication.py @@ -1,11 +1,5 @@ # -*- coding: utf-8 -*- -import os -import logging -import hashlib -import hmac - -from moulinette.utils.text import random_ascii from moulinette.core import MoulinetteError, MoulinetteAuthenticationError logger = logging.getLogger("moulinette.authenticator") diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index fdf9ef67..2bfe5365 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -516,7 +516,7 @@ class _ActionsMapPlugin(object): def display(self, message, style="info"): - s_id = Sesson.get_infos()["id"] + s_id = Session.get_infos()["id"] try: queue = self.log_queues[s_id] except KeyError: diff --git a/test/test_auth.py b/test/test_auth.py index ee6940c5..a432afed 100644 --- a/test/test_auth.py +++ b/test/test_auth.py @@ -1,4 +1,3 @@ -import os import pytest from moulinette import MoulinetteError