Skip to content

Commit

Permalink
Improved test on resignation to check that a DeleteShiftAttendanceTem…
Browse files Browse the repository at this point in the history
…plateLogEntry gets created
  • Loading branch information
Theophile-Madet committed Nov 20, 2024
1 parent ff9bdc6 commit e5bae40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tapir/coop/tests/membership_resignation/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from tapir.shifts.models import (
ShiftAttendance,
ShiftAttendanceTemplate,
DeleteShiftAttendanceTemplateLogEntry,
)
from tapir.shifts.tests.factories import ShiftFactory, ShiftTemplateFactory
from tapir.utils.tests_utils import (
Expand Down Expand Up @@ -163,6 +164,7 @@ def test_updateShifts_resigningMemberHasAttendanceTemplate_attendanceTemplateDel
)

self.assertEqual(ShiftAttendanceTemplate.objects.count(), 0)
self.assertEqual(DeleteShiftAttendanceTemplateLogEntry.objects.count(), 1)

def test_updateShifts_resigningMemberHasAttendancesBeforeResignationDate_attendancesNotUpdated(
self,
Expand Down

0 comments on commit e5bae40

Please sign in to comment.