Skip to content

Commit a331292

Browse files
Chandler Caseyclaude
andcommitted
tests: ruff import order and line length
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Pvnuti4G9iijR3mRCw9CH
1 parent d7bd101 commit a331292

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎src/transcriptfetch/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
APIError,
1818
APITimeoutError,
1919
AuthenticationError,
20-
IdempotencyConflictError,
2120
BatchTooLargeError,
21+
IdempotencyConflictError,
2222
InsufficientCreditsError,
23-
NotFoundError,
24-
UnprocessableInputError,
2523
InternalServerError,
2624
InvalidRequestError,
25+
NotFoundError,
2726
RateLimitError,
2827
TranscriptFetchError,
28+
UnprocessableInputError,
2929
UpstreamUnavailableError,
3030
)
3131
from .models import (
3232
Account,
33-
BatchResponse,
3433
ApiErrorBlock,
34+
BatchResponse,
3535
BatchResult,
3636
Podcast,
3737
Segment,

‎tests/test_errors.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
InternalServerError,
1313
InvalidRequestError,
1414
RateLimitError,
15-
UnprocessableInputError,
1615
TranscriptFetch,
16+
UnprocessableInputError,
1717
UpstreamUnavailableError,
1818
)
1919
from transcriptfetch.errors import APIError
@@ -104,7 +104,9 @@ def test_unprocessable_input_exposes_retry_with() -> None:
104104
@respx.mock
105105
def test_transient_family_is_retryable() -> None:
106106
respx.post(f"{BASE}/api/v2/transcripts/video").mock(
107-
return_value=httpx.Response(503, json=error_env("upstream_error", "The upstream fetch failed."))
107+
return_value=httpx.Response(
108+
503, json=error_env("upstream_error", "The upstream fetch failed.")
109+
)
108110
)
109111
with _client() as tf, pytest.raises(UpstreamUnavailableError) as info:
110112
tf.transcripts.video("x")

0 commit comments

Comments
 (0)