@@ -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" )
0 commit comments