'Test for credit course. If user passes minimum grade requirement then
status will be updated as satisfied in requirement status table.'

@ddt.data(*CourseMode.CREDIT_ELIGIBLE_MODES)
def test_min_grade_credit_requirements_status(self, mode):

    self.basic_setup()
    CourseEnrollment.enroll(self.student_user, self.course.id, mode)
    CreditCourse.objects.create(course_key=self.course.id, enabled=True)
    CreditProvider.objects.create(provider_id='ASU', enable_integration=True, provider_url='https://credit.example.com/request')
    requirements = [{'namespace': 'grade', 'name': 'grade', 'display_name': 'Grade', 'criteria': {'min_grade': 0.52}}]
    set_credit_requirements(self.course.id, requirements)
    req_status = get_credit_requirement_status(self.course.id, self.student_user.username, 'grade', 'grade')
    self.assertEqual(req_status[0]['status'], None)
    self._stop_signal_patch()
    self.submit_question_answer('p1', {'2_1': 'Correct'})
    self.submit_question_answer('p2', {'2_1': 'Correct'})
    req_status = get_credit_requirement_status(self.course.id, self.student_user.username, 'grade', 'grade')
    self.assertEqual(req_status[0]['status'], 'satisfied')
