Skip to content

Commit

Permalink
[py]: Bump black & isort versions
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Feb 8, 2023
1 parent 8cfe8a4 commit c044441
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion py/selenium/webdriver/remote/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ def _request(self, method, url, body=None):
if response.headers.get("Content-Type", None):
content_type = response.headers.get("Content-Type", None).split(";")
if not any([x.startswith("image/png") for x in content_type]):

try:
data = utils.load_json(data.strip())
except ValueError:
Expand Down
1 change: 0 additions & 1 deletion py/test/selenium/webdriver/chrome/proxy_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


def test_bad_proxy_doesnt_interfere():

# these values should be ignored if ignore_local_proxy_environment_variables() is called.
os.environ["https_proxy"] = "bad"
os.environ["http_proxy"] = "bad"
Expand Down
3 changes: 0 additions & 3 deletions py/test/selenium/webdriver/common/upload_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def wrapped(filename):


def test_can_upload_file(driver, pages, get_local_path):

pages.load("upload.html")

driver.find_element(By.ID, "upload").send_keys(get_local_path("test_file.txt"))
Expand All @@ -46,7 +45,6 @@ def test_can_upload_file(driver, pages, get_local_path):


def test_can_upload_two_files(driver, pages, get_local_path):

pages.load("upload.html")
two_file_paths = get_local_path("test_file.txt") + "\n" + get_local_path("test_file2.txt")
driver.find_element(By.ID, "upload").send_keys(two_file_paths)
Expand All @@ -62,7 +60,6 @@ def test_can_upload_two_files(driver, pages, get_local_path):
@pytest.mark.xfail_chrome
@pytest.mark.xfail_safari
def test_file_is_uploaded_to_remote_machine_on_select(driver, pages, get_local_path):

uploaded_files = []
original_upload_func = WebElement._upload

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@


def create_rk_enabled_u2f_authenticator(driver) -> WebDriver:

options = VirtualAuthenticatorOptions()
options.protocol = VirtualAuthenticatorOptions.Protocol.U2F
options.has_resident_key = True
Expand Down
1 change: 0 additions & 1 deletion py/test/selenium/webdriver/common/w3c_interaction_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def test_drag_and_drop(driver, pages):


def test_context_click(driver, pages):

pages.load("javascriptPage.html")
toContextClick = driver.find_element(By.ID, "doubleClickField")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def data() -> Tuple:


def test_rk_enabled_credential(data):

_id, rp_id, user_handle, privatekey, sign_count = data

credential = Credential.create_resident_credential(_id, rp_id, user_handle, privatekey, sign_count)
Expand Down
8 changes: 4 additions & 4 deletions py/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ force_single_line = True
; checks linting for CI with stricter exiting when failing.
skip_install = true
deps =
isort==5.11.4
black==22.12.0
isort==5.12.0
black==23.1.0
; flake8 6+ requires python3.8+ specifically.
flake8==5.0.4
flake8-typing-imports==1.14.0
Expand All @@ -55,8 +55,8 @@ commands =
; IMPORTANT: black & isort rewrite files, flake8 merely alerts to the failure.
skip_install = true
deps =
isort==5.11.4
black==22.12.0
isort==5.12.0
black==23.1.0
; flake8 6+ requires python3.8+ specifically.
flake8==5.0.4
flake8-typing-imports==1.14.0
Expand Down

0 comments on commit c044441

Please sign in to comment.