Skip to content

Commit

Permalink
Libreoffice 7.6 now generates PDF 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed Oct 16, 2023
1 parent 30adee5 commit 7e7c461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_pdf_conversion(server_fixture, filename):
# it won't reflect the external changes.
with open(outfile.name, "rb") as testfile:
start = testfile.readline()
assert start == b"%PDF-1.5\n" or start == b"%PDF-1.6\n"
assert start.startswith(b"%PDF-1.")


class FakeStdio(io.BytesIO):
Expand All @@ -53,7 +53,7 @@ def test_stdin_stdout(server_fixture, monkeypatch, filename):

outfile_stream.seek(0)
start = outfile_stream.readline()
assert start == b"%PDF-1.5\n" or start == b"%PDF-1.6\n"
assert start.startswith(b"%PDF-1.")


def test_csv_conversion(server_fixture):
Expand Down Expand Up @@ -131,7 +131,7 @@ def test_explicit_export_filter(server_fixture, filename):
# it won't reflect the external changes.
with open(outfile.name, "rb") as testfile:
start = testfile.readline()
assert start == b"%PDF-1.5\n" or start == b"%PDF-1.6\n"
assert start.startswith(b"%PDF-1.")


@pytest.mark.parametrize("filename", ["simple.odt", "simple.xlsx"])
Expand Down

0 comments on commit 7e7c461

Please sign in to comment.