Commit 2e868cba by Chris Dodge

one more test

parent d065defc
# pylint: disable=too-many-lines
"""
All tests for the models.py
"""
......@@ -706,6 +708,30 @@ class ProctoredExamApiTests(LoggedInTestCase):
# here, we should get proctoring content
self.assertIsNotNone(rendered_response)
# user doesn't have pre-requisites on reverification
rendered_response = get_student_view(
user_id=self.user_id,
course_id=self.course_id,
content_id=self.content_id,
context={
'is_proctored': True,
'display_name': self.exam_name,
'default_time_limit_mins': 90,
'credit_state': {
'enrollment_mode': 'verified',
'credit_requirement_status': [
{
'namespace': 'grade',
'status': 'failed',
}
]
},
'is_practice_exam': False
}
)
# here, we should get proctoring content
self.assertIsNotNone(rendered_response)
def test_student_view_non_student(self):
"""
Make sure that if we ask for a student view if we are not in a student role,
......
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