Grades cleanup: remove read_only param and create method

EDUCATOR-171
This commit is contained in:
Nimisha Asthagiri
2017-09-23 17:18:36 -04:00
parent 649f3ccd41
commit 1febdbfac9
33 changed files with 214 additions and 338 deletions

View File

@@ -265,7 +265,7 @@ class XQueueCertInterfaceAddCertificateTest(ModuleStoreTestCase):
)
# Run grading/cert generation again
with mock_passing_grade(grade_pass=grade):
with mock_passing_grade(letter_grade=grade):
with patch.object(XQueueInterface, 'send_to_queue') as mock_send:
mock_send.return_value = (0, None)
self.xqueue.add_cert(self.user_2, self.course.id)