Skip to content

Commit

Permalink
Fixup. Format code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 17, 2024
1 parent db3170e commit cb5f0d5
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions pod/authentication/apps.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions pod/authentication/context_processors.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
1 change: 1 addition & 0 deletions pod/bbb/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Esup-Pod BBB models."""

import importlib

from django.db import models
Expand Down
1 change: 1 addition & 0 deletions pod/live/apps.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions pod/recorder/apps.py
Original file line number Diff line number Diff line change
@@ -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 _
Expand Down
1 change: 1 addition & 0 deletions pod/video/feeds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Esup-Pod video feeds."""

from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Rss201rev2Feed

Expand Down
6 changes: 4 additions & 2 deletions pod/video/tests/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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!")

Expand Down
4 changes: 3 additions & 1 deletion pod/video/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cb5f0d5

Please sign in to comment.