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
1905f0c5
Commit
1905f0c5
authored
Jul 31, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix simplifiable-range errors
parent
8b1978ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cms/djangoapps/contentstore/views/tests/test_certificates.py
+2
-2
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
+3
-3
No files found.
cms/djangoapps/contentstore/views/tests/test_certificates.py
View file @
1905f0c5
...
...
@@ -80,7 +80,7 @@ class HelperMethods(object):
'title'
:
'Title '
+
str
(
i
),
'signature_image_path'
:
'/c4x/test/CSS101/asset/Signature{}.png'
.
format
(
i
),
'id'
:
i
}
for
i
in
xrange
(
0
,
signatory_count
)
}
for
i
in
xrange
(
signatory_count
)
]
...
...
@@ -99,7 +99,7 @@ class HelperMethods(object):
'signatories'
:
signatories
,
'version'
:
CERTIFICATE_SCHEMA_VERSION
,
'is_active'
:
is_active
}
for
i
in
xrange
(
0
,
count
)
}
for
i
in
xrange
(
count
)
]
self
.
course
.
certificates
=
{
'certificates'
:
certificates
}
self
.
save_course
()
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
View file @
1905f0c5
...
...
@@ -209,7 +209,7 @@ class DraftPublishedOpTestCourseSetup(unittest.TestCase):
Add a level of the binary course structure by creating the items as children of the proper parents.
"""
parent_id
=
'course'
for
idx
in
xrange
(
0
,
num_items
):
for
idx
in
xrange
(
num_items
):
if
parent_type
!=
'course'
:
parent_id
=
_make_block_id
(
parent_type
,
idx
/
2
)
parent_item
=
getattr
(
self
,
parent_id
)
...
...
@@ -245,13 +245,13 @@ class DraftPublishedOpTestCourseSetup(unittest.TestCase):
# Create a list of all verticals for convenience.
block_type
=
'vertical'
for
idx
in
xrange
(
0
,
8
):
for
idx
in
xrange
(
8
):
block_id
=
_make_block_id
(
block_type
,
idx
)
self
.
all_verticals
.
append
((
block_type
,
block_id
))
# Create a list of all html units for convenience.
block_type
=
'html'
for
idx
in
xrange
(
0
,
16
):
for
idx
in
xrange
(
16
):
block_id
=
_make_block_id
(
block_type
,
idx
)
self
.
all_units
.
append
((
block_type
,
block_id
))
...
...
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