mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
apply ruff rule A005
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user