mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
apply ruff rule A005
This commit is contained in:
@ -9,7 +9,7 @@ from ninja_extra.pagination import PageNumberPaginationExtra
|
||||
from ninja_extra.permissions import IsAuthenticated
|
||||
from ninja_extra.schemas import PaginatedResponseSchema
|
||||
|
||||
from com.calendar import IcsCalendar
|
||||
from com.ics_calendar import IcsCalendar
|
||||
from com.models import News, NewsDate
|
||||
from com.schemas import NewsDateFilterSchema, NewsDateSchema
|
||||
from core.auth.api_permissions import HasPerm
|
||||
|
@ -8,7 +8,7 @@ from django.utils import timezone
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from club.models import Club
|
||||
from club.widgets.select import AutoCompleteSelectClub
|
||||
from club.widgets.ajax_select import AutoCompleteSelectClub
|
||||
from com.models import News, NewsDate, Poster
|
||||
from core.models import User
|
||||
from core.utils import get_end_of_semester
|
||||
|
@ -1,7 +1,7 @@
|
||||
from django.db.models.signals import post_delete, post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from com.calendar import IcsCalendar
|
||||
from com.ics_calendar import IcsCalendar
|
||||
from com.models import News
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@ from django.utils.timezone import now
|
||||
from model_bakery import baker, seq
|
||||
from pytest_django.asserts import assertNumQueries
|
||||
|
||||
from com.calendar import IcsCalendar
|
||||
from com.ics_calendar import IcsCalendar
|
||||
from com.models import News, NewsDate
|
||||
from core.markdown import markdown
|
||||
from core.models import User
|
||||
|
@ -305,7 +305,7 @@ class TestNewsCreation(TestCase):
|
||||
|
||||
# we will just test that the ICS is modified.
|
||||
# Checking that the ICS is *well* modified is up to the ICS tests
|
||||
with patch("com.calendar.IcsCalendar.make_internal") as mocked:
|
||||
with patch("com.ics_calendar.IcsCalendar.make_internal") as mocked:
|
||||
self.client.post(reverse("com:news_new"), self.valid_payload)
|
||||
mocked.assert_called()
|
||||
|
||||
@ -314,7 +314,7 @@ class TestNewsCreation(TestCase):
|
||||
self.valid_payload["occurrences"] = 2
|
||||
last_news = News.objects.order_by("id").last()
|
||||
|
||||
with patch("com.calendar.IcsCalendar.make_internal") as mocked:
|
||||
with patch("com.ics_calendar.IcsCalendar.make_internal") as mocked:
|
||||
self.client.post(
|
||||
reverse("com:news_edit", kwargs={"news_id": last_news.id}),
|
||||
self.valid_payload,
|
||||
|
@ -43,8 +43,8 @@ from django.views.generic import DetailView, ListView, TemplateView, View
|
||||
from django.views.generic.edit import CreateView, DeleteView, UpdateView
|
||||
|
||||
from club.models import Club, Mailing
|
||||
from com.calendar import IcsCalendar
|
||||
from com.forms import NewsDateForm, NewsForm, PosterForm
|
||||
from com.ics_calendar import IcsCalendar
|
||||
from com.models import News, NewsDate, Poster, Screen, Sith, Weekmail, WeekmailArticle
|
||||
from core.auth.mixins import (
|
||||
CanEditPropMixin,
|
||||
|
Reference in New Issue
Block a user