fix: Retrieve grade and enrollment mode only once and pass their values to the generation task, so those values can be saved in the cert. Also protect against missing course grades.

MICROBA-1373
This commit is contained in:
Christie Rice
2021-07-15 11:23:14 -04:00
parent 7261bc42bd
commit c7d06c6bfa
4 changed files with 197 additions and 125 deletions

View File

@@ -2082,7 +2082,7 @@ class TestCertificateGeneration(InstructorTaskModuleTestCase):
'failed': 0,
'skipped': 2
}
with self.assertNumQueries(66):
with self.assertNumQueries(71):
self.assertCertificatesGenerated(task_input, expected_results)
@ddt.data(