Skip to content

Commit 83b8dc2

Browse files
tests: Fix blank pdf tests to expect no input id
Assisted-by: Codex
1 parent c6f5205 commit 83b8dc2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_blank_pdf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ def handler(request: httpx.Request) -> httpx.Response:
410410
assert output_file.name == "blank.pdf"
411411
assert output_file.type == "application/pdf"
412412
assert response.warning is None
413-
assert str(response.input_id) == output_id
413+
assert response.input_ids == []
414+
with pytest.raises(ValueError, match=r"no input id was specified"):
415+
_ = response.input_id
414416

415417

416418
def test_blank_pdf_request_customization(
@@ -531,7 +533,9 @@ def handler(request: httpx.Request) -> httpx.Response:
531533
assert isinstance(response, PdfRestFileBasedResponse)
532534
assert response.output_file.name == "async.pdf"
533535
assert response.output_file.type == "application/pdf"
534-
assert str(response.input_id) == output_id
536+
assert response.input_ids == []
537+
with pytest.raises(ValueError, match=r"no input id was specified"):
538+
_ = response.input_id
535539

536540

537541
@pytest.mark.asyncio

0 commit comments

Comments
 (0)