File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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)
3131from .models import (
3232 Account ,
33- BatchResponse ,
3433 ApiErrorBlock ,
34+ BatchResponse ,
3535 BatchResult ,
3636 Podcast ,
3737 Segment ,
Original file line number Diff line number Diff line change 1212 InternalServerError ,
1313 InvalidRequestError ,
1414 RateLimitError ,
15- UnprocessableInputError ,
1615 TranscriptFetch ,
16+ UnprocessableInputError ,
1717 UpstreamUnavailableError ,
1818)
1919from transcriptfetch .errors import APIError
@@ -104,7 +104,9 @@ def test_unprocessable_input_exposes_retry_with() -> None:
104104@respx .mock
105105def 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" )
You can’t perform that action at this time.
0 commit comments