Skip to content

Commit 95ca18b

Browse files
Fix expected PDF/X ValidationError message
1 parent ae740e9 commit 95ca18b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_convert_to_pdfx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def test_convert_to_pdfx_validation(monkeypatch: pytest.MonkeyPatch) -> None:
134134

135135
with (
136136
PdfRestClient(api_key=VALID_API_KEY, transport=transport) as client,
137-
pytest.raises(ValidationError, match="Field required"),
137+
pytest.raises(
138+
ValidationError,
139+
match="Input should be 'PDF/X-1a', 'PDF/X-3', 'PDF/X-4' or 'PDF/X-6'",
140+
),
138141
):
139142
client.convert_to_pdfx(pdf_file, output_type=None) # type: ignore[arg-type]
140143

0 commit comments

Comments
 (0)