Skip to content

Commit 906a905

Browse files
Fix expected file format from Extract Text
Assisted-by: Codex
1 parent 34fc14e commit 906a905

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/live/test_live_extract_pdf_text_to_file.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def test_live_extract_pdf_text_to_file_success(
2929
assert isinstance(response, PdfRestFileBasedResponse)
3030
assert response.output_files
3131
output_file = response.output_file
32-
assert output_file.name.endswith(".txt")
33-
assert output_file.type == "text/plain"
32+
assert output_file.name.endswith(".json")
33+
assert output_file.type == "application/json"
3434
assert output_file.size > 0
3535
assert response.warning is None
3636
assert response.input_id == uploaded.id
@@ -60,7 +60,8 @@ async def test_live_async_extract_pdf_text_to_file_success(
6060
assert response.output_files
6161
output_file = response.output_file
6262
assert output_file.name.startswith("async-text")
63-
assert output_file.type == "text/plain"
63+
assert output_file.name.endswith(".json")
64+
assert output_file.type == "application/json"
6465
assert output_file.size > 0
6566
assert response.warning is None
6667
assert response.input_id == uploaded.id

0 commit comments

Comments
 (0)