Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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
edx
edx-ora2
Commits
689350d5
Commit
689350d5
authored
Mar 27, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #219 from edx/sanchez/acknowledge_submission_deadline
Acknowledge Submission Deadline
parents
9896d39f
304fab94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
apps/openassessment/xblock/submission_mixin.py
+1
-1
apps/openassessment/xblock/test/test_submission.py
+6
-0
No files found.
apps/openassessment/xblock/submission_mixin.py
View file @
689350d5
...
...
@@ -177,7 +177,7 @@ class SubmissionMixin(object):
"""
workflow
=
self
.
get_workflow_info
()
problem_open
,
date
=
self
.
is_open
()
problem_open
,
date
=
self
.
is_open
(
'submission'
)
sub_due
=
None
if
self
.
submission_due
is
not
None
:
submission_deadline
=
dateutil
.
parser
.
parse
(
self
.
submission_due
)
...
...
apps/openassessment/xblock/test/test_submission.py
View file @
689350d5
...
...
@@ -63,3 +63,9 @@ class SubmissionTest(XBlockHandlerTestCase):
self
.
assertFalse
(
resp
[
0
])
self
.
assertEqual
(
resp
[
1
],
"ENOPREVIEW"
)
self
.
assertEqual
(
resp
[
2
],
"To submit a response, view this component in Preview or Live mode."
)
# In Studio preview mode, the runtime sets the user ID to None
@scenario
(
'data/over_grade_scenario.xml'
,
user_id
=
'Alice'
)
def
test_closed_submissions
(
self
,
xblock
,):
resp
=
self
.
request
(
xblock
,
'render_submission'
,
json
.
dumps
(
dict
()))
self
.
assertIn
(
"Incomplete"
,
resp
)
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