summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
authorTiago Ferraz <tiago.ferraz@gmail.com>2015-03-26 12:25:22 -0300
committerTiago Ferraz <tiago.ferraz@gmail.com>2015-03-26 12:25:22 -0300
commitc48afcf4fc1a73e8308c90aa6a063c2b0dab6765 (patch)
tree166ef65e54abbbad98b1f8646cb28b418a6b235d /service/test
parentb3c759222fe0abf052acb9b1d55de03f01bca814 (diff)
Fix pep* errors
Lambda function is now a def
Diffstat (limited to 'service/test')
-rw-r--r--service/test/functional/features/steps/mail_list.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py
index f4e57c32..cd41d3db 100644
--- a/service/test/functional/features/steps/mail_list.py
+++ b/service/test/functional/features/steps/mail_list.py
@@ -97,7 +97,8 @@ def impl(context):
@when('I delete the email')
def impl(context):
- last_email = lambda: wait_until_elements_are_visible_by_locator(context, (By.XPATH, '//*[@id="mail-list"]//li'))[0]
+ def last_email():
+ wait_until_elements_are_visible_by_locator(context, (By.XPATH, '//*[@id="mail-list"]//li'))[0]
context.current_mail_id = last_email().get_attribute('id')
last_email().find_element_by_tag_name('input').click()
find_element_by_id(context, 'delete-selected').click()