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
7e4f3fd0
Commit
7e4f3fd0
authored
Mar 10, 2016
by
lenacom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed comment
parent
2f2c6fc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/course_api/blocks/tests/test_api.py
+4
-4
No files found.
lms/djangoapps/course_api/blocks/tests/test_api.py
View file @
7e4f3fd0
...
@@ -85,8 +85,8 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
...
@@ -85,8 +85,8 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
blocks
=
get_blocks
(
self
.
request
,
sequential_block
.
location
,
self
.
user
,
requested_fields
=
[
'type'
])
blocks
=
get_blocks
(
self
.
request
,
sequential_block
.
location
,
self
.
user
,
requested_fields
=
[
'type'
])
self
.
assertEquals
(
len
(
blocks
[
'blocks'
]),
5
)
self
.
assertEquals
(
len
(
blocks
[
'blocks'
]),
5
)
found_not_problem
=
False
found_not_problem
=
False
for
key
in
blocks
[
'blocks'
]
:
for
block
in
blocks
[
'blocks'
]
.
itervalues
()
:
if
block
s
[
'blocks'
][
key
]
[
'type'
]
!=
'problem'
:
if
block
[
'type'
]
!=
'problem'
:
found_not_problem
=
True
found_not_problem
=
True
self
.
assertTrue
(
found_not_problem
)
self
.
assertTrue
(
found_not_problem
)
...
@@ -94,5 +94,5 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
...
@@ -94,5 +94,5 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
blocks
=
get_blocks
(
self
.
request
,
sequential_block
.
location
,
self
.
user
,
blocks
=
get_blocks
(
self
.
request
,
sequential_block
.
location
,
self
.
user
,
block_types_filter
=
[
'problem'
],
requested_fields
=
[
'type'
])
block_types_filter
=
[
'problem'
],
requested_fields
=
[
'type'
])
self
.
assertEquals
(
len
(
blocks
[
'blocks'
]),
3
)
self
.
assertEquals
(
len
(
blocks
[
'blocks'
]),
3
)
for
key
in
blocks
[
'blocks'
]
:
for
block
in
blocks
[
'blocks'
]
.
itervalues
()
:
self
.
assertEqual
(
block
s
[
'blocks'
][
key
]
[
'type'
],
'problem'
)
self
.
assertEqual
(
block
[
'type'
],
'problem'
)
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