Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
itsisak committed Oct 2, 2024
1 parent 0911c34 commit ae00ea0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lego/apps/events/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ def assign_penalties_and_unregister_when_payment_overdue(self, logger_context=No

event.unregister(
registration,
admin_unregistration_reason="Automated unregister", # Needed to not give double penalties
# Needed to not give double penalties
admin_unregistration_reason="Automated unregister",
)

notification = EventPaymentOverduePenaltyNotification(
Expand Down
8 changes: 6 additions & 2 deletions lego/apps/events/tests/test_async_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ def test_creator_notification_is_not_sent_past_end_time(self, mock_notification)
def test_user_is_given_penalty_is_unregistered_and_notified(
self, mock_notification
):
"""Test that user is given a penalty, is unregistered and notified when payment is overdue"""
"""
Test that user is given a penalty, is unregistered and notified when payment is overdue
"""

self.event.payment_due_date = timezone.now() - timedelta(days=2)
self.event.save()
Expand Down Expand Up @@ -822,7 +824,9 @@ def test_user_is_given_penalty_is_unregistered_and_notified(
def test_user_is_not_given_penalty_is_not_unregistered_and_not_notified(
self, mock_notification
):
"""Test that user is NOT given a penalty, is unregistered and notified when payment is overdue"""
"""
Test that user is NOT given a penalty, is unregistered and notified when payment is overdue
"""
self.event.payment_due_date = timezone.now() + timedelta(days=2)
self.event.save()

Expand Down

0 comments on commit ae00ea0

Please sign in to comment.