Skip to content

Commit

Permalink
Forgot to remove factor 30 for months since it's already included, ne…
Browse files Browse the repository at this point in the history
…ed to add +1 to get above threshold
  • Loading branch information
Redflashx12 committed Nov 4, 2024
1 parent 7852f2e commit 60301ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evap/staff/tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ class RemoveUserDueToInactivity(TestCase):
def test_remove_user_due_to_inactivity(self):
inactive_user = baker.make(UserProfile, last_name="Inactive User")
inactive_evaluation = baker.make(Evaluation, state=Evaluation.State.PUBLISHED,
vote_start_datetime=datetime.today() - timedelta(days=settings.PARTICIPATION_DELETION_AFTER_INACTIVE_MONTHS * 30),
vote_end_date=datetime.today() - timedelta(days=settings.PARTICIPATION_DELETION_AFTER_INACTIVE_MONTHS * 30),
vote_start_datetime=datetime.today() - timedelta(days=settings.PARTICIPATION_DELETION_AFTER_INACTIVE_MONTHS+1),
vote_end_date=datetime.today() - timedelta(days=settings.PARTICIPATION_DELETION_AFTER_INACTIVE_MONTHS+1),
participants=[inactive_user])

semester = inactive_evaluation.course.semester
Expand Down

0 comments on commit 60301ad

Please sign in to comment.