Skip to content

Commit

Permalink
missed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed Oct 20, 2024
1 parent c82fd5a commit 2f98e6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def test_write_empty_stream():

with pytest.raises(ValueError) as exc:
writer.write("")
assert exc.value.args[0] == "Output(stream=) is empty."
assert exc.value.args[0] == "Output(stream='') is empty."


def test_startup_dest():
Expand Down Expand Up @@ -1187,21 +1187,21 @@ def test_set_page_label(pdf_file_path):
writer = PdfWriter()
writer.clone_document_from_reader(reader)
with pytest.raises(
ValueError, match="at least one between style and prefix must be given"
ValueError, match="At least one of style and prefix must be given"
):
writer.set_page_label(0, 5, start=2)
with pytest.raises(
ValueError, match="page_index_from must be equal or greater then 0"
ValueError, match="page_index_from must be greater or equal than 0"
):
writer.set_page_label(-1, 5, "/r")
with pytest.raises(
ValueError, match="page_index_to must be equal or greater then page_index_from"
ValueError, match="page_index_to must be greater or equal than page_index_from"
):
writer.set_page_label(5, 0, "/r")
with pytest.raises(ValueError, match="page_index_to exceeds number of pages"):
writer.set_page_label(0, 19, "/r")
with pytest.raises(
ValueError, match="if given, start must be equal or greater than one"
ValueError, match="If given, start must be greater or equal than one"
):
writer.set_page_label(0, 5, "/r", start=-1)

Expand Down

0 comments on commit 2f98e6c

Please sign in to comment.