Skip to content

Commit

Permalink
toc lenght calculation - fix tests (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschaer committed Oct 2, 2024
1 parent c42451a commit 6f1cf48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/contrib.print_proxy.mapfish_print/test_mapfish_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6f1cf48

Please sign in to comment.