Pep8 fixes

This commit is contained in:
Will Daly
2013-05-16 11:33:50 -04:00
parent 342b3bb0e9
commit 1e1e6450df
2 changed files with 4 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ def the_subsection_does_not_exist(step):
css = 'span.subsection-name'
assert world.browser.is_element_not_present_by_css(css)
@step('I see the correct dates$')
def i_see_the_correct_dates(step):
assert_equal('12/25/2011', get_date('input#start_date'))
@@ -105,6 +106,7 @@ def i_see_the_correct_dates(step):
def get_date(css):
return world.css_find(css).first.value.strip()
def save_subsection_name(name):
name_css = 'input.new-subsection-name-input'
save_css = 'input.new-subsection-name-save'

View File

@@ -38,6 +38,7 @@ LOGGER.info("Loading the lettuce acceptance testing terrain file...")
MAX_VALID_BROWSER_ATTEMPTS = 20
@before.harvest
def initial_setup(server):
"""
@@ -73,6 +74,7 @@ def initial_setup(server):
if not success:
raise IOError("Could not acquire valid ChromeDriver browser session.")
@before.each_scenario
def reset_data(scenario):
"""