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
352126b4
Commit
352126b4
authored
Mar 08, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests for correct_map to match changes made to get_npoints
parent
5644d081
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/lib/capa/capa/tests/test_correctmap.py
+3
-3
No files found.
common/lib/capa/capa/tests/test_correctmap.py
View file @
352126b4
...
@@ -91,12 +91,12 @@ class CorrectMapTest(unittest.TestCase):
...
@@ -91,12 +91,12 @@ class CorrectMapTest(unittest.TestCase):
npoints
=
0
)
npoints
=
0
)
# Assert that we get the expected points
# Assert that we get the expected points
# If points assigned
and correct
--> npoints
# If points assigned --> npoints
# If no points assigned and correct --> 1 point
# If no points assigned and correct --> 1 point
#
Otherwise
--> 0 points
#
If no points assigned and incorrect
--> 0 points
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'1_2_1'
),
5
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'1_2_1'
),
5
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'2_2_1'
),
1
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'2_2_1'
),
1
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'3_2_1'
),
0
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'3_2_1'
),
5
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'4_2_1'
),
0
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'4_2_1'
),
0
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'5_2_1'
),
0
)
self
.
assertEqual
(
self
.
cmap
.
get_npoints
(
'5_2_1'
),
0
)
...
...
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