diff --git a/pod/authentication/apps.py b/pod/authentication/apps.py index ed200d7946..12bb60e3bb 100644 --- a/pod/authentication/apps.py +++ b/pod/authentication/apps.py @@ -1,4 +1,5 @@ """Esup-Pod Authentication apps.""" + from django.apps import AppConfig from django.db.models.signals import post_migrate from django.core.exceptions import ObjectDoesNotExist diff --git a/pod/authentication/context_processors.py b/pod/authentication/context_processors.py index c4402a1d09..7a23d59bb0 100644 --- a/pod/authentication/context_processors.py +++ b/pod/authentication/context_processors.py @@ -1,4 +1,5 @@ """Esup-Pod authentication context_processors.""" + from django.conf import settings as django_settings SHIB_NAME = getattr(django_settings, "SHIB_NAME", "Identify Federation") diff --git a/pod/bbb/models.py b/pod/bbb/models.py index bbe60ffdfc..1f94e1b258 100644 --- a/pod/bbb/models.py +++ b/pod/bbb/models.py @@ -1,4 +1,5 @@ """Esup-Pod BBB models.""" + import importlib from django.db import models diff --git a/pod/live/apps.py b/pod/live/apps.py index ec40c3b0f6..1f95945c18 100644 --- a/pod/live/apps.py +++ b/pod/live/apps.py @@ -1,4 +1,5 @@ """Esup-Pod Live apps.""" + from django.apps import AppConfig from django.db.models.signals import post_migrate, pre_migrate from django.db import connection diff --git a/pod/recorder/apps.py b/pod/recorder/apps.py index b6cf337586..afb371fb85 100644 --- a/pod/recorder/apps.py +++ b/pod/recorder/apps.py @@ -1,4 +1,5 @@ """Esup-Pod recorder apps.""" + from django.apps import AppConfig from django.db.models.signals import post_migrate from django.utils.translation import gettext_lazy as _ diff --git a/pod/video/feeds.py b/pod/video/feeds.py index 320b59df59..32b12fe463 100644 --- a/pod/video/feeds.py +++ b/pod/video/feeds.py @@ -1,4 +1,5 @@ """Esup-Pod video feeds.""" + from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Rss201rev2Feed diff --git a/pod/video/tests/test_apps.py b/pod/video/tests/test_apps.py index 94f6c76960..c85ca1f577 100644 --- a/pod/video/tests/test_apps.py +++ b/pod/video/tests/test_apps.py @@ -29,7 +29,9 @@ def setUp(self) -> None: """Set up required objects for next tests.""" self.user = User.objects.create(username="pod", password=PWD) # nosem self.chan = Channel.objects.create(title="ChannelTest1") - self.theme = Theme.objects.create(title="Theme1", slug="blabla", channel=self.chan) + self.theme = Theme.objects.create( + title="Theme1", slug="blabla", channel=self.chan + ) self.disc = Discipline.objects.create(title="Discipline1") self.type = Type.objects.get(id=1) self.vr = VideoRendition.objects.get(id=1) @@ -39,7 +41,7 @@ def setUp(self) -> None: video="test.mp4", is_draft=False, password=PWD, # nosem - type=Type.objects.get(id=1) + type=Type.objects.get(id=1), ) print("\n ---> SetUp of VideoTestApps: OK!") diff --git a/pod/video/utils.py b/pod/video/utils.py index 0c538e1481..619313b930 100644 --- a/pod/video/utils.py +++ b/pod/video/utils.py @@ -156,7 +156,9 @@ def move_video_file(video, new_owner) -> None: video.save() -def get_videos(title, user_id, search=None, limit: int = 12, offset: int = 0) -> JsonResponse: +def get_videos( + title, user_id, search=None, limit: int = 12, offset: int = 0 +) -> JsonResponse: """Return videos filtered by GET parameters 'title' with limit and offset. Args: