Skip to content

Commit d125013

Browse files
committed
style: apply ruff auto-fixes from pre-commit lint hook
1 parent 65d1b4f commit d125013

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/aignostics/platform/authentication_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def test_no_retry_on_client_error(mock_settings, caplog) -> None:
879879
record
880880
for record in caplog.records
881881
if "Retrying aignostics_sdk.platform._authentication._access_token_from_refresh_token"
882-
in record.getMessage() # noqa: E501
882+
in record.getMessage()
883883
]
884884
assert len(retry_logs) == 0, "Should not log retry attempts for 4xx errors"
885885

@@ -918,7 +918,7 @@ def side_effect(*args, **kwargs):
918918
record
919919
for record in caplog.records
920920
if "Retrying aignostics_sdk.platform._authentication._do_access_token_from_refresh_token"
921-
in record.getMessage() # noqa: E501
921+
in record.getMessage()
922922
]
923923
assert len(retry_logs) > 0, "Should log retry attempts for 5xx errors"
924924

@@ -953,7 +953,7 @@ def side_effect(*args, **kwargs):
953953
record
954954
for record in caplog.records
955955
if "Retrying aignostics_sdk.platform._authentication._do_access_token_from_refresh_token"
956-
in record.getMessage() # noqa: E501
956+
in record.getMessage()
957957
]
958958
assert len(retry_logs) > 0, "Should log retry attempts for connection errors"
959959

@@ -1167,7 +1167,7 @@ def test_successful_token_verification_no_retry(mock_settings) -> None:
11671167
with (
11681168
patch(
11691169
"aignostics_sdk.platform._authentication._get_jwk_client", return_value=mock_jwt_client
1170-
) as mock_get_jwk, # noqa: E501
1170+
) as mock_get_jwk,
11711171
patch("jwt.decode", return_value={"sub": "user-id", "exp": int(time.time()) + 3600}),
11721172
):
11731173
result = verify_and_decode_token("valid.token")

tests/aignostics/utils/di_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ class _Base:
636636
assert not any(
637637
p not in {"aignostics", "aignostics_sdk"} and not p.startswith(("aignostics.", "aignostics_sdk."))
638638
for p in searched
639-
) # noqa: E501
639+
)
640640

641641

642642
# ---------------------------------------------------------------------------
@@ -900,7 +900,7 @@ class LocalSub(_Base):
900900
assert not any(
901901
p not in {"aignostics", "aignostics_sdk"} and not p.startswith(("aignostics.", "aignostics_sdk."))
902902
for p in searched
903-
) # noqa: E501
903+
)
904904

905905

906906
@pytest.mark.unit

0 commit comments

Comments
 (0)