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
73bca8af
Commit
73bca8af
authored
Mar 06, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1610 from MITx/fix/diana/fix-annotation-tests
Update correctmap to handle partially correct answers, and
parents
05211d4f
5c3dfd92
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/lib/capa/capa/correctmap.py
+1
-1
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
+1
-1
No files found.
common/lib/capa/capa/correctmap.py
View file @
73bca8af
...
...
@@ -95,7 +95,7 @@ class CorrectMap(object):
def
is_correct
(
self
,
answer_id
):
if
answer_id
in
self
.
cmap
:
return
self
.
cmap
[
answer_id
][
'correctness'
]
==
'correct'
return
self
.
cmap
[
answer_id
][
'correctness'
]
in
[
'correct'
,
'partially-correct'
]
return
None
def
is_queued
(
self
,
answer_id
):
...
...
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
View file @
73bca8af
...
...
@@ -34,7 +34,7 @@ class AnnotatableModuleTestCase(unittest.TestCase):
shared_state
=
None
def
setUp
(
self
):
self
.
annotatable
=
AnnotatableModule
(
test_system
,
self
.
location
,
self
.
definition
,
self
.
descriptor
,
self
.
instance_state
,
self
.
shared_state
)
self
.
annotatable
=
AnnotatableModule
(
test_system
()
,
self
.
location
,
self
.
definition
,
self
.
descriptor
,
self
.
instance_state
,
self
.
shared_state
)
def
test_annotation_data_attr
(
self
):
el
=
etree
.
fromstring
(
'<annotation title="bar" body="foo" problem="0">test</annotation>'
)
...
...
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