From 6f1cf48b0cf4497ed4fb7cc372beffcfa91cac80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Sch=C3=A4r?= Date: Wed, 2 Oct 2024 10:37:48 +0200 Subject: [PATCH] toc lenght calculation - fix tests (#2038) --- .../test_mapfish_print.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/contrib.print_proxy.mapfish_print/test_mapfish_print.py b/tests/contrib.print_proxy.mapfish_print/test_mapfish_print.py index 92ec3ac9e9..aa308293ac 100644 --- a/tests/contrib.print_proxy.mapfish_print/test_mapfish_print.py +++ b/tests/contrib.print_proxy.mapfish_print/test_mapfish_print.py @@ -39,6 +39,11 @@ def extract(): ) as f: yield json.load(f) +@pytest.fixture +@pytest.mark.usefixtures('extract') +def extract_toc_pages(extract): + extract["Display_QRCode"] = False + yield extract @pytest.fixture def extract_multi_wms(): @@ -99,8 +104,8 @@ def geometry(coordinates): } -def test_toc_pages(extract): - assert TocPages(extract).getNbPages() == 1 +def test_toc_pages(extract_toc_pages): + assert TocPages(extract_toc_pages).getNbPages() == 1 def getSameEntryInList(reference, objects):