Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Aug 8, 2024
1 parent 338e336 commit 9dff6ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/views/user_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,14 +753,14 @@ def test_send_inactivity_reminder(days: int, mail_sent: bool):

assert StudentUser.objects.update(date_joined=date_joined)

TeacherUser.objects.update(date_joined=date_joined, last_login=None)
IndependentUser.objects.update(last_login=last_login)

teacher_users = list(TeacherUser.objects.all())
assert teacher_users
indy_users = list(IndependentUser.objects.all())
assert indy_users

TeacherUser.objects.update(date_joined=date_joined, last_login=None)
IndependentUser.objects.update(last_login=last_login)

with patch("src.api.views.user.send_mail") as send_mail_mock:
self.client.cron_job(action)

Expand Down

0 comments on commit 9dff6ab

Please sign in to comment.