From 087b45d5836de7b128f177972a2dd18b2b972398 Mon Sep 17 00:00:00 2001 From: voisardf Date: Thu, 29 Aug 2024 12:12:20 +0200 Subject: [PATCH] fixed some test and linting --- .../test_mapfish_print_configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/contrib.print_proxy.mapfish_print/test_mapfish_print_configuration.py b/tests/contrib.print_proxy.mapfish_print/test_mapfish_print_configuration.py index d03f26f08d..06146040fa 100644 --- a/tests/contrib.print_proxy.mapfish_print/test_mapfish_print_configuration.py +++ b/tests/contrib.print_proxy.mapfish_print/test_mapfish_print_configuration.py @@ -108,6 +108,6 @@ def test_toc_pages_default_config(): compute_toc_pages = Config.get('print', {}).get('compute_toc_pages') default_toc_length = Config.get('print', {}).get('default_toc_length') - assert compute_toc_pages == False + assert isinstance(compute_toc_pages,bool) + assert bool(compute_toc_pages) == False assert default_toc_length == 2 -