File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11from ..common import ClientError , ErrorCode
22
3+
34def test_client_error_is_blocked_sync ():
45 """Test the is_blocked_sync method of ClientError."""
56 error = ClientError (detail = "" , server_code = None )
@@ -12,6 +13,7 @@ def test_client_error_is_blocked_sync():
1213 error .server_code = ErrorCode .ProjectVersionExists .value
1314 assert error .is_blocking_sync () is True
1415
16+
1517def test_client_error_is_rate_limit ():
1618 """Test the is_rate_limit method of ClientError."""
1719 error = ClientError (detail = "" , http_error = None )
@@ -21,6 +23,7 @@ def test_client_error_is_rate_limit():
2123 error .http_error = 429
2224 assert error .is_rate_limit () is True
2325
26+
2427def test_client_error_is_retryable_sync ():
2528 """Test the is_retryable_sync method of ClientError."""
2629 error = ClientError (detail = "" , server_code = None , http_error = None )
@@ -43,4 +46,4 @@ def test_client_error_is_retryable_sync():
4346 error .http_error = 500
4447 assert error .is_retryable_sync () is False
4548 error .http_error = 429
46- assert error .is_retryable_sync () is True
49+ assert error .is_retryable_sync () is True
You can’t perform that action at this time.
0 commit comments