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
82972852
Commit
82972852
authored
Nov 17, 2015
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
8699706f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
openassessment/xblock/test/test_submission.py
+2
-3
No files found.
openassessment/xblock/test/test_submission.py
View file @
82972852
...
...
@@ -16,7 +16,7 @@ from submissions import api as sub_api
from
submissions.api
import
SubmissionRequestError
,
SubmissionInternalError
from
openassessment.fileupload
import
api
from
openassessment.workflow
.models
import
AssessmentWorkflowCancellation
from
openassessment.workflow
import
api
as
workflow_api
from
openassessment.xblock.openassessmentblock
import
OpenAssessmentBlock
from
openassessment.xblock.data_conversion
import
create_submission_dict
,
prepare_submission_for_serialization
...
...
@@ -329,7 +329,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock
.
get_username
=
Mock
(
return_value
=
'Bob'
)
AssessmentWorkflowCancellation
.
get_lates
t_workflow_cancellation
=
Mock
(
return_value
=
{
workflow_api
.
get_assessmen
t_workflow_cancellation
=
Mock
(
return_value
=
{
'comments'
:
'Inappropriate language'
,
'cancelled_by_id'
:
'Bob'
,
'created_at'
:
dt
.
datetime
(
2999
,
5
,
6
)
.
replace
(
tzinfo
=
pytz
.
utc
),
...
...
@@ -348,7 +348,6 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
'workflow_cancellation'
:
{
'comments'
:
'Inappropriate language'
,
'cancelled_by_id'
:
'Bob'
,
'cancelled_at'
:
dt
.
datetime
(
2999
,
5
,
6
)
.
replace
(
tzinfo
=
pytz
.
utc
),
'cancelled_by'
:
'Bob'
}
}
...
...
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