Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
8acba50f
Commit
8acba50f
authored
Jun 30, 2015
by
Afzal Wali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved coverage.
Made the time duration of the exam lower case in the body.
parent
5a023e43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletions
+43
-1
edx_proctoring/templates/proctoring/seq_timed_exam_entrance.html
+1
-1
edx_proctoring/tests/test_views.py
+42
-0
No files found.
edx_proctoring/templates/proctoring/seq_timed_exam_entrance.html
View file @
8acba50f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<strong>
<strong>
{% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %}
{% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %}
</strong>
</strong>
Once you proceed, you'll start both the exam and the {{total_time}} given to you.
Once you proceed, you'll start both the exam and the {{total_time
|lower
}} given to you.
</p>
</p>
<div
class=
"gated-sequence"
>
<div
class=
"gated-sequence"
>
{% blocktrans %}
{% blocktrans %}
...
...
edx_proctoring/tests/test_views.py
View file @
8acba50f
...
@@ -489,6 +489,48 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
...
@@ -489,6 +489,48 @@ class TestStudentProctoredExamAttempt(LoggedInTestCase):
)
)
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertEqual
(
response
.
status_code
,
200
)
def
test_get_expired_exam_attempt
(
self
):
"""
Test to get the exam the time for which has finished.
"""
# Create an exam.
proctored_exam
=
ProctoredExam
.
objects
.
create
(
course_id
=
'a/b/c'
,
content_id
=
'test_content'
,
exam_name
=
'Test Exam'
,
external_id
=
'123aXqe3'
,
time_limit_mins
=
90
)
response
=
self
.
client
.
get
(
reverse
(
'edx_proctoring.proctored_exam.attempt'
)
)
self
.
assertEqual
(
response
.
status_code
,
200
)
attempt_data
=
{
'exam_id'
:
proctored_exam
.
id
,
'user_id'
:
self
.
student_taking_exam
.
id
,
'external_id'
:
proctored_exam
.
external_id
}
response
=
self
.
client
.
post
(
reverse
(
'edx_proctoring.proctored_exam.attempt'
),
attempt_data
)
self
.
assertEqual
(
response
.
status_code
,
200
)
ProctoredExamStudentAttempt
.
objects
.
filter
(
proctored_exam_id
=
proctored_exam
.
id
,
user_id
=
self
.
user
.
id
,
external_id
=
proctored_exam
.
external_id
,
)
.
update
(
started_at
=
datetime
.
now
(
pytz
.
UTC
)
.
replace
(
year
=
2013
)
)
response
=
self
.
client
.
get
(
reverse
(
'edx_proctoring.proctored_exam.attempt'
)
)
self
.
assertEqual
(
response
.
status_code
,
200
)
class
TestExamAllowanceView
(
LoggedInTestCase
):
class
TestExamAllowanceView
(
LoggedInTestCase
):
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment