From 773029bd364037943a810506a79cebca85f2a260 Mon Sep 17 00:00:00 2001 From: Evgeny Anatskiy Date: Mon, 28 Aug 2017 12:12:18 +0200 Subject: [PATCH] fix flake8 issues --- .../test_published_histories_grid.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/selenium_tests/test_published_histories_grid.py b/test/selenium_tests/test_published_histories_grid.py index da9d28607d4..53be8297394 100644 --- a/test/selenium_tests/test_published_histories_grid.py +++ b/test/selenium_tests/test_published_histories_grid.py @@ -145,10 +145,8 @@ class HistoryGridTestCase(SeleniumTestCase): time.sleep(.5) def set_tags(self, tags): - tag_icon_selector = self.test_data['historyPanel']['selectors'] \ - ['history']['tagIcon'] - tag_area_selector = self.test_data['historyPanel']['selectors'] \ - ['history']['tagArea'] + tag_icon_selector = self.test_data['historyPanel']['selectors']['history']['tagIcon'] + tag_area_selector = self.test_data['historyPanel']['selectors']['history']['tagArea'] if not self.is_displayed(tag_area_selector): tag_icon = self.wait_for_selector(tag_icon_selector) @@ -165,10 +163,8 @@ class HistoryGridTestCase(SeleniumTestCase): time.sleep(.5) def set_annotation(self, annotation): - anno_icon_selector = self.test_data['historyPanel']['selectors'] \ - ['history']['annoIcon'] - anno_area_selector = self.test_data['historyPanel']['selectors'] \ - ['history']['annoArea'] + anno_icon_selector = self.test_data['historyPanel']['selectors']['history']['annoIcon'] + anno_area_selector = self.test_data['historyPanel']['selectors']['history']['annoArea'] if not self.is_displayed(anno_area_selector): annon_icon = self.wait_for_selector(anno_icon_selector) @@ -239,8 +235,7 @@ class HistoryGridTestCase(SeleniumTestCase): def click_to_rename_history(self): self.history_panel_name_element().click() - edit_title_input_selector = self.test_data['historyPanel'] \ - ['selectors']['history']['nameEditableTextInput'] + edit_title_input_selector = self.test_data['historyPanel']['selectors']['history']['nameEditableTextInput'] return self.wait_for_selector(edit_title_input_selector) def is_displayed(self, selector):