From 8bcb99f84fccd83a615472f3d6a298964747fe08 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Wed, 9 Sep 2020 15:57:10 +0200
Subject: [PATCH] [libraries][tests] Pre-commit cleanup

---
 beat/web/libraries/tests/core.py       | 14 ++++----------
 beat/web/libraries/tests/tests_api.py  |  9 ++-------
 beat/web/libraries/tests/tests_team.py |  7 +------
 beat/web/libraries/tests/tests_user.py |  6 +-----
 4 files changed, 8 insertions(+), 28 deletions(-)

diff --git a/beat/web/libraries/tests/core.py b/beat/web/libraries/tests/core.py
index 48672f999..1874d771b 100644
--- a/beat/web/libraries/tests/core.py
+++ b/beat/web/libraries/tests/core.py
@@ -30,23 +30,17 @@ import os
 import shutil
 
 import simplejson as json
-
-from django.contrib.auth.models import User
 from django.conf import settings
+from django.contrib.auth.models import User
 
-from ...dataformats.models import DataFormat
+from beat.core.library import Storage
 
 from ...common.testutils import BaseTestCase
-from ...common.testutils import (  # noqa test runner will call it, tearDownModule
-    tearDownModule,
-)
-
+from ...common.testutils import tearDownModule  # noqa test runner will call it
+from ...dataformats.models import DataFormat
 from ...team.models import Team
-
 from ..models import Library
 
-from beat.core.library import Storage
-
 TEST_PWD = "1234"
 
 
diff --git a/beat/web/libraries/tests/tests_api.py b/beat/web/libraries/tests/tests_api.py
index 9243efaf6..b46ced7f6 100644
--- a/beat/web/libraries/tests/tests_api.py
+++ b/beat/web/libraries/tests/tests_api.py
@@ -27,20 +27,15 @@
 
 
 import simplejson as json
-
-from django.contrib.auth.models import User
 from django.conf import settings
+from django.contrib.auth.models import User
 from django.urls import reverse
 
 import beat.core.library
 
 from ...common.testutils import get_algorithms_from_data
-from ...common.testutils import (  # noqa test runner will call it, tearDownModule
-    tearDownModule,
-)
-
+from ...common.testutils import tearDownModule  # noqa test runner will call it
 from ..models import Library
-
 from .core import LibrariesAPIBase
 
 
diff --git a/beat/web/libraries/tests/tests_team.py b/beat/web/libraries/tests/tests_team.py
index 03077bd38..2190cb990 100644
--- a/beat/web/libraries/tests/tests_team.py
+++ b/beat/web/libraries/tests/tests_team.py
@@ -27,14 +27,9 @@
 
 from django.contrib.auth.models import User
 
-from ...common.testutils import (  # noqa test runner will call it, tearDownModule
-    tearDownModule,
-)
-
+from ...common.testutils import tearDownModule  # noqa test runner will call it
 from ...team.models import Team
-
 from ..models import Library
-
 from .core import LibrariesAccessibilityFunctionsBase
 
 
diff --git a/beat/web/libraries/tests/tests_user.py b/beat/web/libraries/tests/tests_user.py
index 00ed6202d..fee89b9d9 100644
--- a/beat/web/libraries/tests/tests_user.py
+++ b/beat/web/libraries/tests/tests_user.py
@@ -26,12 +26,8 @@
 ###############################################################################
 
 
-from ...common.testutils import (  # noqa test runner will call it, tearDownModule
-    tearDownModule,
-)
-
+from ...common.testutils import tearDownModule  # noqa test runner will call it
 from ..models import Library
-
 from .core import LibrariesAccessibilityFunctionsBase
 
 
-- 
GitLab