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
3e44f8a2
Commit
3e44f8a2
authored
Jul 02, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Component test now fails with useful information
parent
d552eef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
cms/djangoapps/contentstore/features/component.py
+2
-1
No files found.
cms/djangoapps/contentstore/features/component.py
View file @
3e44f8a2
...
...
@@ -2,6 +2,7 @@
#pylint: disable=W0621
from
lettuce
import
world
,
step
from
nose.tools
import
assert_true
DATA_LOCATION
=
'i4x://edx/templates'
...
...
@@ -26,7 +27,7 @@ def add_components(step):
def
check_components
(
step
):
for
component
in
[
step_hash
[
'Component'
]
for
step_hash
in
step
.
hashes
]:
assert
component
in
COMPONENT_DICTIONARY
assert
COMPONENT_DICTIONARY
[
component
][
'found_func'
](
)
assert
_true
(
COMPONENT_DICTIONARY
[
component
][
'found_func'
](),
"{} couldn't be found"
.
format
(
component
)
)
@step
(
u'I delete all components'
)
...
...
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