Skip to content

Commit 5b68c94

Browse files
committed
[py] run remote tests in test-remote
1 parent ee708e6 commit 5b68c94

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

py/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ py_library(
319319
srcs = glob(
320320
[
321321
"test/selenium/webdriver/common/**/*.py",
322+
"test/selenium/webdriver/remote/**/*.py",
322323
"test/selenium/webdriver/support/**/*.py",
323324
],
324325
exclude = ["test/selenium/webdriver/common/print_pdf_tests.py"],
@@ -444,6 +445,7 @@ py_test_suite(
444445
size = "large",
445446
srcs = glob([
446447
"test/selenium/webdriver/common/**/*.py",
448+
"test/selenium/webdriver/remote/**/*.py",
447449
"test/selenium/webdriver/support/**/*.py",
448450
]),
449451
args = [

py/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def wait_for_server(url, timeout):
258258
"--selenium-manager",
259259
"true",
260260
"--enable-managed-downloads",
261-
"true"
261+
"true",
262262
]
263263
)
264264
print(f"Selenium server running as process: {process.pid}")

py/test/selenium/webdriver/remote/remote_downloads_tests.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
import zipfile
2020
from time import sleep
2121

22-
import pytest
23-
24-
from selenium import webdriver
2522
from selenium.webdriver.common.by import By
2623

2724

@@ -45,7 +42,7 @@ def test_download_file(driver, pages):
4542
file_byte_data = base64.b64decode(file_contents)
4643
zip_memory = io.BytesIO(file_byte_data)
4744

48-
with zipfile.ZipFile(zip_memory, 'r') as zip_ref:
45+
with zipfile.ZipFile(zip_memory, "r") as zip_ref:
4946
for name in zip_ref.namelist():
5047
with zip_ref.open(name) as file:
5148
file_content = file.read()

0 commit comments

Comments
 (0)