'Test that we can still try to update a credit status but return quickly if
user has non-credit eligible enrollment.'

@ddt.data(CourseMode.AUDIT, CourseMode.HONOR, CourseMode.CREDIT_MODE)
def test_set_status_non_verified_enrollment(self, mode):

    self.enroll(mode=mode)
    set_credit_requirements(self.course.id, [{'namespace': 'grade', 'name': 'grade', 'display_name': 'Grade', 'criteria': {'min_grade': 0.8}}])
    self.service.set_credit_requirement_status(self.user.id, self.course.id, 'grade', 'grade')
    credit_state = self.service.get_credit_state(self.user.id, self.course.id)
    self.assertIsNotNone(credit_state)
    self.assertEqual(credit_state['enrollment_mode'], mode)
    self.assertEqual(len(credit_state['credit_requirement_status']), 1)
    self.assertIsNone(credit_state['credit_requirement_status'][0]['status'])
    self.assertIsNone(credit_state['credit_requirement_status'][0]['status_date'])
