change course_validation endpoint to support option to get data for only graded assignments and add ability to scroll to elements on the course outline page

This commit is contained in:
Michael Roytman
2018-06-26 15:11:21 -04:00
parent a66675dc8f
commit 92c816966d
4 changed files with 85 additions and 22 deletions

View File

@@ -77,11 +77,10 @@ class CourseValidationViewTest(SharedModuleStoreTestCase, APITestCase):
self.assertEqual(resp.status_code, status.HTTP_200_OK)
expected_data = {
'assignments': {
'num_with_dates_before_end': 0,
'num_with_dates': 0,
'total_visible': 1,
'num_with_dates_after_start': 0,
'total_number': 1,
'total_visible': 1,
'assignments_with_dates_before_start': [],
'assignments_with_dates_after_end': [],
},
'dates': {
'has_start_date': True,
@@ -99,4 +98,5 @@ class CourseValidationViewTest(SharedModuleStoreTestCase, APITestCase):
},
'is_self_paced': True,
}
self.assertDictEqual(resp.data, expected_data)