fix for python35 string formatting

Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
This commit is contained in:
Oleksii Lymarenko 2018-10-04 18:56:39 +03:00
parent 75f23a19ad
commit 3bc7378544
No known key found for this signature in database
GPG Key ID: 2007E841ECE4A02C
1 changed files with 5 additions and 5 deletions

View File

@ -13,11 +13,11 @@ class TestLinksVerifications(SingleDeviceTestCase):
no_link_open_error_msg = 'Could not open our privacy policy from'
if not signin_view.privacy_policy_link.is_element_displayed():
self.driver.fail(f'{no_link_found_error_msg} Sign in view!')
self.driver.fail('{} Sign in view!'.format(no_link_found_error_msg))
base_web_view = signin_view.privacy_policy_link.click()
if not base_web_view.policy_summary.is_element_displayed():
self.errors.append(f'{no_link_open_error_msg} Sign in view!')
self.errors.append('{} Sign in view!'.format(no_link_open_error_msg))
base_web_view.click_system_back_button()
signin_view = SignInView(self.driver)
@ -27,7 +27,7 @@ class TestLinksVerifications(SingleDeviceTestCase):
base_web_view = about_view.privacy_policy_button.click()
if not base_web_view.policy_summary.is_element_displayed():
self.errors.append(f'{no_link_open_error_msg} Profile about view!')
self.errors.append('{} Profile about view!'.format(no_link_open_error_msg))
base_web_view.click_system_back_button()
if about_view.privacy_policy_button.is_element_displayed():
@ -38,10 +38,10 @@ class TestLinksVerifications(SingleDeviceTestCase):
signin_view.other_accounts_button.click()
if not signin_view.privacy_policy_link.is_element_displayed():
self.driver.fail(f'{no_link_found_error_msg} Sign in view!')
self.driver.fail('{} Sign in view!'.format(no_link_found_error_msg))
base_web_view = signin_view.privacy_policy_link.click()
if not base_web_view.policy_summary.is_element_displayed():
self.errors.append(f'{no_link_open_error_msg} Sign in view!')
self.errors.append('{} Sign in view!'.format(no_link_open_error_msg))
self.verify_no_errors()