Skip to content

Commit 38edbd9

Browse files
lint test_runner
1 parent cb559d1 commit 38edbd9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/integration/release/test_runner.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import os
22
import subprocess
3+
import time
34
from pathlib import Path
4-
from tests.integration.release.conftest import CLI_DEFAULT_OUTPUT_DIR
55

66
import pytest
7-
import time
7+
8+
from tests.integration.release.conftest import CLI_DEFAULT_OUTPUT_DIR
89

910

1011
@pytest.mark.parametrize(
@@ -20,15 +21,19 @@
2021
],
2122
ids=["1", "2", "3"],
2223
)
23-
def test_release_tests(
24-
pytest_args: list[str], request: pytest.FixtureRequest
25-
) -> None:
24+
def test_release_tests(pytest_args: list[str], request: pytest.FixtureRequest) -> None:
2625
output_dir_name = request.config.getoption("--output-dir", default=CLI_DEFAULT_OUTPUT_DIR)
2726
timestamped_dir = Path(output_dir_name) / f"{time.strftime('%Y%m%d_%H%M%S')}"
2827
timestamped_dir.mkdir(parents=True, exist_ok=False)
2928

3029
os.chdir(Path(__file__).parent) # need this to access cli options from conftest.py
31-
base_cmd = ["pytest", "--release", "test_release.py", "--check-max-tb=1000", f"--output-dir={timestamped_dir}"]
30+
base_cmd = [
31+
"pytest",
32+
"--release",
33+
"test_release.py",
34+
"--check-max-tb=1000",
35+
f"--output-dir={timestamped_dir}",
36+
]
3237
cmd = base_cmd + pytest_args
3338

3439
# log using job id

0 commit comments

Comments
 (0)