@@ -66,7 +66,7 @@ def test_summarize_payload_invalid_page_range() -> None:
6666 SummarizePdfTextPayload .model_validate ({"files" : [file_repr ], "pages" : ["5-2" ]})
6767
6868
69- def test_summarize_pdf_text_json_success (monkeypatch : pytest .MonkeyPatch ) -> None :
69+ def test_summarize_text_json_success (monkeypatch : pytest .MonkeyPatch ) -> None :
7070 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
7171 input_file = _make_text_file (str (PdfRestFileID .generate (1 )))
7272 payload_dump = SummarizePdfTextPayload .model_validate (
@@ -100,7 +100,7 @@ def handler(request: httpx.Request) -> httpx.Response:
100100
101101 transport = httpx .MockTransport (handler )
102102 with PdfRestClient (api_key = VALID_API_KEY , transport = transport ) as client :
103- response = client .summarize_pdf_text (
103+ response = client .summarize_text (
104104 input_file ,
105105 target_word_count = 120 ,
106106 summary_format = "bullet_points" ,
@@ -115,7 +115,7 @@ def handler(request: httpx.Request) -> httpx.Response:
115115 assert response .input_id == input_file .id
116116
117117
118- def test_summarize_pdf_text_to_file_success (
118+ def test_summarize_text_to_file_success (
119119 monkeypatch : pytest .MonkeyPatch ,
120120) -> None :
121121 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
@@ -158,7 +158,7 @@ def handler(request: httpx.Request) -> httpx.Response:
158158
159159 transport = httpx .MockTransport (handler )
160160 with PdfRestClient (api_key = VALID_API_KEY , transport = transport ) as client :
161- response = client .summarize_pdf_text_to_file (
161+ response = client .summarize_text_to_file (
162162 input_file ,
163163 target_word_count = 200 ,
164164 summary_format = "bullet_points" ,
@@ -174,7 +174,7 @@ def handler(request: httpx.Request) -> httpx.Response:
174174 assert response .input_id == input_file .id
175175
176176
177- def test_summarize_pdf_text_to_file_request_customization (
177+ def test_summarize_text_to_file_request_customization (
178178 monkeypatch : pytest .MonkeyPatch ,
179179) -> None :
180180 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
@@ -223,7 +223,7 @@ def handler(request: httpx.Request) -> httpx.Response:
223223
224224 transport = httpx .MockTransport (handler )
225225 with PdfRestClient (api_key = VALID_API_KEY , transport = transport ) as client :
226- response = client .summarize_pdf_text_to_file (
226+ response = client .summarize_text_to_file (
227227 input_file ,
228228 extra_query = {"trace" : "true" },
229229 extra_headers = {"X-Debug" : "sync" },
@@ -246,7 +246,7 @@ def handler(request: httpx.Request) -> httpx.Response:
246246
247247
248248@pytest .mark .asyncio
249- async def test_async_summarize_pdf_text_success (
249+ async def test_async_summarize_text_success (
250250 monkeypatch : pytest .MonkeyPatch ,
251251) -> None :
252252 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
@@ -275,7 +275,7 @@ def handler(request: httpx.Request) -> httpx.Response:
275275
276276 transport = httpx .MockTransport (handler )
277277 async with AsyncPdfRestClient (api_key = ASYNC_API_KEY , transport = transport ) as client :
278- response = await client .summarize_pdf_text (input_file )
278+ response = await client .summarize_text (input_file )
279279
280280 assert seen == {"post" : 1 }
281281 assert isinstance (response , SummarizePdfTextResponse )
@@ -284,7 +284,7 @@ def handler(request: httpx.Request) -> httpx.Response:
284284
285285
286286@pytest .mark .asyncio
287- async def test_async_summarize_pdf_text_to_file_success (
287+ async def test_async_summarize_text_to_file_success (
288288 monkeypatch : pytest .MonkeyPatch ,
289289) -> None :
290290 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
@@ -322,7 +322,7 @@ def handler(request: httpx.Request) -> httpx.Response:
322322
323323 transport = httpx .MockTransport (handler )
324324 async with AsyncPdfRestClient (api_key = ASYNC_API_KEY , transport = transport ) as client :
325- response = await client .summarize_pdf_text_to_file (input_file )
325+ response = await client .summarize_text_to_file (input_file )
326326
327327 assert seen == {"post" : 1 , "get" : 1 }
328328 assert isinstance (response , PdfRestFileBasedResponse )
0 commit comments