Skip to content

Commit 3ec89be

Browse files
Encryption live tests: Fix incorrect regex check of error message
1 parent f2edb09 commit 3ec89be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/live/test_live_encrypt_pdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_live_remove_open_password_invalid_password(
208208
new_open_password=correct_password,
209209
output="live-open-invalid",
210210
).output_file
211-
with pytest.raises(PdfRestApiError, match="open password"):
211+
with pytest.raises(PdfRestApiError, match="password-protected"):
212212
client.remove_open_password(
213213
restricted,
214214
current_open_password=wrong_password,
@@ -234,7 +234,7 @@ async def test_live_async_remove_open_password_invalid_password(
234234
output="async-live-open-invalid",
235235
)
236236
).output_file
237-
with pytest.raises(PdfRestApiError, match="open password"):
237+
with pytest.raises(PdfRestApiError, match="password-protected"):
238238
await client.remove_open_password(
239239
restricted,
240240
current_open_password=wrong_password,

0 commit comments

Comments
 (0)