Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
4d0ce28f
Unverified
Commit
4d0ce28f
authored
Nov 14, 2017
by
sanfordstudent
Committed by
GitHub
Nov 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16560 from edx/sstudent/EDUCATOR-1624
EDUCATOR-1624 logging
parents
7ccc4988
898129b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lms/djangoapps/instructor_task/tasks_helper/module_state.py
+1
-1
lms/djangoapps/instructor_task/tests/test_tasks.py
+4
-1
No files found.
lms/djangoapps/instructor_task/tasks_helper/module_state.py
View file @
4d0ce28f
...
...
@@ -174,7 +174,7 @@ def rescore_problem_module_state(xmodule_instance_args, module_descriptor, stude
if
not
hasattr
(
instance
,
'rescore'
):
# This should not happen, since it should be already checked in the
# caller, but check here to be sure.
msg
=
"Specified
problem does not support rescoring."
msg
=
"Specified
module {0} of type {1} does not support rescoring."
.
format
(
usage_key
,
instance
.
__class__
)
raise
UpdateProblemModuleStateError
(
msg
)
# We check here to see if the problem has any submissions. If it does not, we don't want to rescore it
...
...
lms/djangoapps/instructor_task/tests/test_tasks.py
View file @
4d0ce28f
...
...
@@ -394,7 +394,10 @@ class TestRescoreInstructorTask(TestInstructorTasks):
entry
=
InstructorTask
.
objects
.
get
(
id
=
task_entry
.
id
)
output
=
json
.
loads
(
entry
.
task_output
)
self
.
assertEquals
(
output
[
'exception'
],
"UpdateProblemModuleStateError"
)
self
.
assertEquals
(
output
[
'message'
],
"Specified problem does not support rescoring."
)
self
.
assertEquals
(
output
[
'message'
],
"Specified module {0} of type {1} does not support rescoring."
.
format
(
self
.
location
,
mock_instance
.
__class__
,
))
self
.
assertGreater
(
len
(
output
[
'traceback'
]),
0
)
def
test_rescoring_unaccessable
(
self
):
...
...
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