Commit a80101dd by cahrens

Don't add every helper method to world.

parent 0222e57c
...@@ -115,7 +115,6 @@ def edit_component(): ...@@ -115,7 +115,6 @@ def edit_component():
world.css_click('a.edit-button') world.css_click('a.edit-button')
@world.absorb
def enter_xml_in_advanced_problem(step, text): def enter_xml_in_advanced_problem(step, text):
""" """
Edits an advanced problem (assumes only on page), Edits an advanced problem (assumes only on page),
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#pylint: disable=C0111 #pylint: disable=C0111
from lettuce import world, step from lettuce import world, step
from component_settings_editor_helpers import enter_xml_in_advanced_problem
from nose.tools import assert_true, assert_equal from nose.tools import assert_true, assert_equal
...@@ -15,7 +16,7 @@ def i_export_the_course(step): ...@@ -15,7 +16,7 @@ def i_export_the_course(step):
@step('I edit and enter bad XML$') @step('I edit and enter bad XML$')
def i_enter_bad_xml(step): def i_enter_bad_xml(step):
world.enter_xml_in_advanced_problem(step, enter_xml_in_advanced_problem(step,
"""<problem><h1>Smallest Canvas</h1> """<problem><h1>Smallest Canvas</h1>
<p>You want to make the smallest canvas you can.</p> <p>You want to make the smallest canvas you can.</p>
<multiplechoiceresponse> <multiplechoiceresponse>
...@@ -30,7 +31,7 @@ def i_enter_bad_xml(step): ...@@ -30,7 +31,7 @@ def i_enter_bad_xml(step):
@step('I edit and enter an ampersand$') @step('I edit and enter an ampersand$')
def i_enter_bad_xml(step): 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$') @step('I get an error dialog$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment