Skip to content

Commit 62ec138

Browse files
Test: Fix expected results for diff-pdf-visually>=1.8.1
1 parent 86d0d9d commit 62ec138

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Configuration for the pytest test suite."""
22

33
# LICENSE HEADER MANAGED BY add-license-header
4-
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
4+
# Copyright (c) 2023-2025 Blue Brain Project, EPFL.
55
#
66
# This file is part of dir-content-diff.
77
# See https://github.com/BlueBrain/dir-content-diff for further info.
@@ -84,7 +84,7 @@ def pdf_diff():
8484
"""The diff that should be reported for the PDF files."""
8585
return (
8686
r"The files '\S*/file.pdf' and '\S*/file.pdf' are different\:\n"
87-
"Kwargs used for computing differences: {'verbosity': 0}\n"
87+
r"(Kwargs used for computing differences: {'verbosity': 0}\n)?"
8888
"The following pages are the most different: 1"
8989
)
9090

tests/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test the base features of the ``dir-content-diff`` package."""
22

33
# LICENSE HEADER MANAGED BY add-license-header
4-
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
4+
# Copyright (c) 2023-2025 Blue Brain Project, EPFL.
55
#
66
# This file is part of dir-content-diff.
77
# See https://github.com/BlueBrain/dir-content-diff for further info.
@@ -1205,7 +1205,7 @@ def test_nested_files(self, ref_with_nested_file, res_diff_with_nested_file):
12051205
match = re.match(
12061206
r"The files '\S*/ref/level1/level2/level3/file\.pdf' and "
12071207
r"'\S*/res/level1/level2/level3/file\.pdf' are different:\n"
1208-
"Kwargs used for computing differences: {'verbosity': 0}\n"
1208+
r"(Kwargs used for computing differences: {'verbosity': 0}\n)?"
12091209
"The following pages are the most different: 1",
12101210
res["level1/level2/level3/file.pdf"],
12111211
)

0 commit comments

Comments
 (0)