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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user