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
a80101dd
Commit
a80101dd
authored
Jan 06, 2014
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't add every helper method to world.
parent
0222e57c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+0
-1
cms/djangoapps/contentstore/features/course-export.py
+3
-2
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
a80101dd
...
...
@@ -115,7 +115,6 @@ def edit_component():
world
.
css_click
(
'a.edit-button'
)
@world.absorb
def
enter_xml_in_advanced_problem
(
step
,
text
):
"""
Edits an advanced problem (assumes only on page),
...
...
cms/djangoapps/contentstore/features/course-export.py
View file @
a80101dd
...
...
@@ -2,6 +2,7 @@
#pylint: disable=C0111
from
lettuce
import
world
,
step
from
component_settings_editor_helpers
import
enter_xml_in_advanced_problem
from
nose.tools
import
assert_true
,
assert_equal
...
...
@@ -15,7 +16,7 @@ def i_export_the_course(step):
@step
(
'I edit and enter bad XML$'
)
def
i_enter_bad_xml
(
step
):
world
.
enter_xml_in_advanced_problem
(
step
,
enter_xml_in_advanced_problem
(
step
,
"""<problem><h1>Smallest Canvas</h1>
<p>You want to make the smallest canvas you can.</p>
<multiplechoiceresponse>
...
...
@@ -30,7 +31,7 @@ def i_enter_bad_xml(step):
@step
(
'I edit and enter an ampersand$'
)
def
i_enter_bad_xml
(
step
):
world
.
enter_xml_in_advanced_problem
(
step
,
"<problem>&</problem>"
)
enter_xml_in_advanced_problem
(
step
,
"<problem>&</problem>"
)
@step
(
'I get an error dialog$'
)
...
...
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