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
6e9b1f60
Commit
6e9b1f60
authored
Feb 11, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix capa response system -> capa_system
parent
02438853
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/capa/capa/responsetypes.py
+1
-1
common/lib/capa/capa/tests/test_responsetypes.py
+3
-3
No files found.
common/lib/capa/capa/responsetypes.py
View file @
6e9b1f60
...
...
@@ -1856,7 +1856,7 @@ class CodeResponse(LoncapaResponse):
'submission_time'
:
qtime
,
}
if
getattr
(
self
.
capa_system
,
'send_users_emailaddr_with_coderesponse'
,
False
):
student_info
.
update
({
'student_email'
:
self
.
system
.
deanonymized_user_email
})
student_info
.
update
({
'student_email'
:
self
.
capa_
system
.
deanonymized_user_email
})
contents
.
update
({
'student_info'
:
json
.
dumps
(
student_info
)})
...
...
common/lib/capa/capa/tests/test_responsetypes.py
View file @
6e9b1f60
...
...
@@ -1011,13 +1011,13 @@ class CodeResponseTest(ResponseTest):
student_ans
=
{}
for
ans_id
in
answer_ids
:
student_ans
[
ans_id
]
=
TEST_STUDENT_RESP
self
.
problem
.
system
.
send_users_emailaddr_with_coderesponse
=
True
self
.
problem
.
system
.
deanonymized_user_email
=
TEST_EMAIL
self
.
problem
.
capa_
system
.
send_users_emailaddr_with_coderesponse
=
True
self
.
problem
.
capa_
system
.
deanonymized_user_email
=
TEST_EMAIL
mock_qinterface
=
mock
.
Mock
()
# side_effect needed b/c get_score destructures the return value of send_to_queue
mock_send_to_queue
=
mock
.
Mock
(
side_effect
=
itertools
.
repeat
((
False
,
"OK"
)))
mock_qinterface
.
send_to_queue
=
mock_send_to_queue
self
.
problem
.
system
.
xqueue
[
'interface'
]
=
mock_qinterface
self
.
problem
.
capa_
system
.
xqueue
[
'interface'
]
=
mock_qinterface
self
.
problem
.
grade_answers
(
student_ans
)
# From docstring of send_to_queue: "The operation of xqueue is agnostic to the contents of (argument) 'body'"
(
_
,
kwargs
)
=
mock_send_to_queue
.
call_args
...
...
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