diff --git a/beat/web/libraries/tests/core.py b/beat/web/libraries/tests/core.py index 48672f99999f25c04ec56fa4731d3eea209eab9e..1874d771bc2917e213bceee4f3d652c3b45dbdcc 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 9243efaf6b743a2ea6a254a41cbe00e0e454ed63..b46ced7f6e634265b73425771a0b7061ceffc04b 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 03077bd382ce5f2f185979bfc40c4ca42d439d69..2190cb9907504e428f1b7664aa531410fd01b15f 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 00ed6202d1dafa6185c49d34f41121cd6e8f93c1..fee89b9d9ee5dc29595489c4f8727b4c904c0e56 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