Skip to content

Commit 0524417

Browse files
fix: Update test JSON structure.
1 parent 3d743aa commit 0524417

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lms/djangoapps/instructor/tests/test_api.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,10 @@ def test_list_course_role_members_staff(self):
24252425
'first_name': self.other_staff.first_name,
24262426
'last_name': self.other_staff.last_name,
24272427
}
2428-
]
2428+
],
2429+
'count': 1,
2430+
'num_pages': 1,
2431+
'current_page': 1,
24292432
}
24302433
res_json = json.loads(response.content.decode('utf-8'))
24312434
assert res_json == expected
@@ -2440,7 +2443,10 @@ def test_list_course_role_members_beta(self):
24402443
# check response content
24412444
expected = {
24422445
'course_id': str(self.course.id),
2443-
'beta': []
2446+
'beta': [],
2447+
'count': 0,
2448+
'num_pages': 0,
2449+
'current_page': 1,
24442450
}
24452451
res_json = json.loads(response.content.decode('utf-8'))
24462452
assert res_json == expected

0 commit comments

Comments
 (0)