Skip to content

Commit d31aad3

Browse files
committed
[py] Fixing flake8 issues
1 parent 762c0e9 commit d31aad3

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

py/test/selenium/webdriver/common/alerts_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from selenium.common.exceptions import (
2626
InvalidElementStateException,
2727
NoAlertPresentException,
28-
TimeoutException,
2928
UnexpectedAlertPresentException,
3029
WebDriverException)
3130

py/test/selenium/webdriver/common/frame_switching_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from selenium.common.exceptions import (
2626
NoSuchElementException,
2727
NoSuchFrameException,
28-
TimeoutException,
2928
WebDriverException)
3029
from selenium.webdriver.common.by import By
3130
from selenium.webdriver.support.ui import WebDriverWait
@@ -230,7 +229,7 @@ def testShouldContinueToReferToTheSameFrameOnceItHasBeenSelected(driver, pages):
230229

231230

232231
@pytest.mark.xfail_marionette(raises=WebDriverException,
233-
reason = 'https://github.com/mozilla/geckodriver/issues/610')
232+
reason='https://github.com/mozilla/geckodriver/issues/610')
234233
def testShouldFocusOnTheReplacementWhenAFrameFollowsALinkToA_TopTargetedPage(driver, pages):
235234
pages.load("frameset.html")
236235
driver.switch_to.frame(0)
@@ -376,7 +375,7 @@ def testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUsWithWebelement
376375
@pytest.mark.xfail_chrome(raises=NoSuchElementException)
377376
@pytest.mark.xfail_phantomjs(raises=BadStatusLine)
378377
@pytest.mark.xfail_marionette(raises=WebDriverException,
379-
reason = 'https://github.com/mozilla/geckodriver/issues/614')
378+
reason='https://github.com/mozilla/geckodriver/issues/614')
380379
def testShouldNotBeAbleToDoAnythingTheFrameIsDeletedFromUnderUs(driver, pages):
381380
pages.load("frame_switching_tests/deletingFrame.html")
382381
driver.switch_to.frame(driver.find_element_by_id("iframe1"))

py/test/selenium/webdriver/common/interactions_tests.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"""Tests for advanced user interactions."""
1919
import pytest
2020

21-
from selenium.common.exceptions import WebDriverException
2221
from selenium.webdriver.common.keys import Keys
2322
from selenium.webdriver.common.action_chains import ActionChains
2423
from selenium.webdriver.support.ui import WebDriverWait
@@ -98,7 +97,7 @@ def testDragAndDrop(driver, pages):
9897

9998

10099
@pytest.mark.xfail_marionette(
101-
reason = 'https://github.com/mozilla/geckodriver/issues/661')
100+
reason='https://github.com/mozilla/geckodriver/issues/661')
102101
def testDoubleClick(driver, pages):
103102
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
104103
pages.load("javascriptPage.html")
@@ -112,7 +111,7 @@ def testDoubleClick(driver, pages):
112111

113112

114113
@pytest.mark.xfail_marionette(
115-
reason = 'https://github.com/mozilla/geckodriver/issues/660')
114+
reason='https://github.com/mozilla/geckodriver/issues/660')
116115
@pytest.mark.xfail_phantomjs(
117116
reason='https://github.com/ariya/phantomjs/issues/14005')
118117
def testContextClick(driver, pages):
@@ -199,7 +198,7 @@ def testSelectingMultipleItems(driver, pages):
199198

200199

201200
@pytest.mark.xfail_marionette(
202-
reason = 'https://github.com/mozilla/geckodriver/issues/646')
201+
reason='https://github.com/mozilla/geckodriver/issues/646')
203202
def testSendingKeysToActiveElementWithModifier(driver, pages):
204203
pages.load("formPage.html")
205204
e = driver.find_element_by_id("working")

py/test/selenium/webdriver/common/w3c_interaction_tests.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_should_be_able_to_get_pointer_and_keyboard_inputs(driver, pages):
3232

3333

3434
@pytest.mark.xfail_marionette(
35-
reason = 'https://github.com/mozilla/geckodriver/issues/646')
35+
reason='https://github.com/mozilla/geckodriver/issues/646')
3636
def testSendingKeysToActiveElementWithModifier(driver, pages):
3737
pages.load("formPage.html")
3838
e = driver.find_element_by_id("working")
@@ -69,7 +69,6 @@ def test_can_create_pause_action_on_keyboard(driver, pages):
6969

7070
def test_can_create_pause_action_on_pointer(driver, pages):
7171
# If we don't get an error and takes less than 3 seconds to run, we are good
72-
7372
import datetime
7473
start = datetime.datetime.now()
7574
actions1 = ActionBuilder(driver)
@@ -131,7 +130,7 @@ def testDragAndDrop(driver, pages):
131130

132131

133132
@pytest.mark.xfail_marionette(
134-
reason = 'https://github.com/mozilla/geckodriver/issues/660')
133+
reason='https://github.com/mozilla/geckodriver/issues/660')
135134
def test_context_click(driver, pages):
136135

137136
pages.load("javascriptPage.html")
@@ -146,7 +145,7 @@ def test_context_click(driver, pages):
146145

147146

148147
@pytest.mark.xfail_marionette(
149-
reason = 'https://github.com/mozilla/geckodriver/issues/661')
148+
reason='https://github.com/mozilla/geckodriver/issues/661')
150149
def test_double_click(driver, pages):
151150
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
152151
pages.load("javascriptPage.html")

0 commit comments

Comments
 (0)