def test_find_clients__with_no_issues(): Submission.objects.create( answers={ "EMAIL": "*****@*****.**", "ISSUES": [] }, created_at=THREE_DAYS_AGO, is_complete=False, ) assert find_submissions(CaseTopic.REPAIRS) == [] assert find_submissions(CaseTopic.RENT_REDUCTION) == []
def test_find_clients__with_issue_too_late(): Submission.objects.create( answers={ "EMAIL": "*****@*****.**", "ISSUES": ["REPAIRS"] }, created_at=THREE_WEEKS_AGO, is_complete=False, ) assert find_submissions(CaseTopic.REPAIRS) == []
def test_find_clients__with_reminder_already_sent(): Submission.objects.create( answers={ "EMAIL": "*****@*****.**", "ISSUES": ["REPAIRS"] }, created_at=THREE_DAYS_AGO, is_complete=False, is_reminder_sent=True, ) assert find_submissions(CaseTopic.REPAIRS) == []