Fixing constant and adding in tests

This commit is contained in:
Dillon Dumesnil
2018-08-13 12:17:35 -04:00
parent 19ba450b1d
commit 258cd3fe06
3 changed files with 11 additions and 2 deletions

View File

@@ -40,10 +40,12 @@ class TestCredentialsSignalsSendGrade(TestCase):
@ddt.data(
[True, 'verified', 'downloadable'],
[True, 'professional', 'downloadable'],
[True, 'no-id-professional', 'downloadable'],
[True, 'credit', 'downloadable'],
[True, 'verified', 'notpassing'],
[False, 'audit', 'downloadable'],
[False, 'professional', 'generating'],
[False, 'no-id-professional', 'generating'],
)
@ddt.unpack
def test_send_grade_if_right_cert(self, called, mode, status, mock_is_course_run_in_a_program,