Skip to content

Commit 03e5c81

Browse files
committed
make format
1 parent 2a1b3ca commit 03e5c81

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

tests/unit/test_api_request.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,9 @@ def json_func():
447447
status_code=200, reason="OK", headers={"X-Spec-Version": "1.1.0"}
448448
)
449449

450-
with contextlib.redirect_stderr(stderr_buf), patch(
451-
"linodecli.api_request.requests.get", mock_http_response
450+
with (
451+
contextlib.redirect_stderr(stderr_buf),
452+
patch("linodecli.api_request.requests.get", mock_http_response),
452453
):
453454
api_request._attempt_warn_old_version(mock_cli, mock_response)
454455

@@ -491,8 +492,9 @@ def json_func():
491492
status_code=200, reason="OK", headers={"X-Spec-Version": "1.1.0"}
492493
)
493494

494-
with contextlib.redirect_stderr(stderr_buf), patch(
495-
"linodecli.api_request.requests.get", mock_http_response
495+
with (
496+
contextlib.redirect_stderr(stderr_buf),
497+
patch("linodecli.api_request.requests.get", mock_http_response),
496498
):
497499
api_request._attempt_warn_old_version(mock_cli, mock_response)
498500

@@ -525,8 +527,9 @@ def json_func():
525527
status_code=200, reason="OK", headers={"X-Spec-Version": "1.0.0"}
526528
)
527529

528-
with contextlib.redirect_stderr(stderr_buf), patch(
529-
"linodecli.api_request.requests.get", mock_http_response
530+
with (
531+
contextlib.redirect_stderr(stderr_buf),
532+
patch("linodecli.api_request.requests.get", mock_http_response),
530533
):
531534
api_request._attempt_warn_old_version(mock_cli, mock_response)
532535

tests/unit/test_overrides.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ def patch_func(*a):
3535
OUTPUT_OVERRIDES[override_signature](*a)
3636
return True
3737

38-
with patch(
39-
"linodecli.baked.operation.OUTPUT_OVERRIDES",
40-
{override_signature: patch_func},
41-
), patch.object(mock_cli.output_handler, "print") as p:
38+
with (
39+
patch(
40+
"linodecli.baked.operation.OUTPUT_OVERRIDES",
41+
{override_signature: patch_func},
42+
),
43+
patch.object(mock_cli.output_handler, "print") as p,
44+
):
4245
list_operation_for_overrides_test.process_response_json(
4346
response_json, mock_cli.output_handler
4447
)

0 commit comments

Comments
 (0)