Commit 1e1e6450 by Will Daly

Pep8 fixes

parent 342b3bb0
...@@ -92,6 +92,7 @@ def the_subsection_does_not_exist(step): ...@@ -92,6 +92,7 @@ def the_subsection_does_not_exist(step):
css = 'span.subsection-name' css = 'span.subsection-name'
assert world.browser.is_element_not_present_by_css(css) assert world.browser.is_element_not_present_by_css(css)
@step('I see the correct dates$') @step('I see the correct dates$')
def i_see_the_correct_dates(step): def i_see_the_correct_dates(step):
assert_equal('12/25/2011', get_date('input#start_date')) assert_equal('12/25/2011', get_date('input#start_date'))
...@@ -105,6 +106,7 @@ def i_see_the_correct_dates(step): ...@@ -105,6 +106,7 @@ def i_see_the_correct_dates(step):
def get_date(css): def get_date(css):
return world.css_find(css).first.value.strip() return world.css_find(css).first.value.strip()
def save_subsection_name(name): def save_subsection_name(name):
name_css = 'input.new-subsection-name-input' name_css = 'input.new-subsection-name-input'
save_css = 'input.new-subsection-name-save' save_css = 'input.new-subsection-name-save'
......
...@@ -38,6 +38,7 @@ LOGGER.info("Loading the lettuce acceptance testing terrain file...") ...@@ -38,6 +38,7 @@ LOGGER.info("Loading the lettuce acceptance testing terrain file...")
MAX_VALID_BROWSER_ATTEMPTS = 20 MAX_VALID_BROWSER_ATTEMPTS = 20
@before.harvest @before.harvest
def initial_setup(server): def initial_setup(server):
""" """
...@@ -73,6 +74,7 @@ def initial_setup(server): ...@@ -73,6 +74,7 @@ def initial_setup(server):
if not success: if not success:
raise IOError("Could not acquire valid ChromeDriver browser session.") raise IOError("Could not acquire valid ChromeDriver browser session.")
@before.each_scenario @before.each_scenario
def reset_data(scenario): def reset_data(scenario):
""" """
......
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