Commit dd6609fa by Calen Pennington

Fix dashboard data tests

parent 6d5478a4
...@@ -113,7 +113,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase): ...@@ -113,7 +113,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase):
def test_get_problemset_grade_distrib(self): def test_get_problemset_grade_distrib(self):
prob_grade_distrib = get_problem_grade_distribution(self.course.id) prob_grade_distrib, __ = get_problem_grade_distribution(self.course.id)
probset_grade_distrib = get_problem_set_grade_distrib(self.course.id, prob_grade_distrib) probset_grade_distrib = get_problem_set_grade_distrib(self.course.id, prob_grade_distrib)
for problem in probset_grade_distrib: for problem in probset_grade_distrib:
...@@ -256,7 +256,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase): ...@@ -256,7 +256,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase):
data = json.dumps({'sections': sections, data = json.dumps({'sections': sections,
'tooltips': tooltips, 'tooltips': tooltips,
'course_id': course_id, 'course_id': course_id.to_deprecated_string(),
'data_type': data_type, 'data_type': data_type,
}) })
...@@ -292,7 +292,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase): ...@@ -292,7 +292,7 @@ class TestGetProblemGradeDistribution(ModuleStoreTestCase):
data = json.dumps({'sections': sections, data = json.dumps({'sections': sections,
'tooltips': tooltips, 'tooltips': tooltips,
'course_id': course_id, 'course_id': course_id.to_deprecated_string(),
'data_type': data_type, 'data_type': data_type,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment