Skip to content

Commit 76d5f88

Browse files
Redact PDF live test: Fix expected error message
Assisted-by: Codex
1 parent 4050ab0 commit 76d5f88

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/live/test_live_pdf_redactions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ def test_live_redactions_invalid_payloads(
183183
base_url=pdfrest_live_base_url,
184184
) as client:
185185
if "redactions" in extra_body:
186-
with pytest.raises(PdfRestApiError, match=r"(?i)redaction"):
186+
with pytest.raises(
187+
PdfRestApiError,
188+
match=(
189+
r"The JSON data provided is not properly formatted\. Please check "
190+
r"your syntax and try again\."
191+
),
192+
):
187193
client.preview_redactions(
188194
uploaded_pdf_for_redaction,
189195
redactions=[{"type": "literal", "value": "placeholder"}],

0 commit comments

Comments
 (0)