diff --git a/tests/contrib.print_proxy.mapfish_print/resources/test_config.yml b/tests/contrib.print_proxy.mapfish_print/resources/test_config.yml index 3b1dd144ee..4776cc2245 100644 --- a/tests/contrib.print_proxy.mapfish_print/resources/test_config.yml +++ b/tests/contrib.print_proxy.mapfish_print/resources/test_config.yml @@ -4,6 +4,8 @@ pyramid_oereb: wms_url_params: TRANSPARENT: 'true' OTHERCUSTOM: 'myvalue' + compute_toc_pages: false + default_toc_length: 2 theme: source: 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 a2ff8d4aae..d03f26f08d 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 @@ -100,3 +100,14 @@ def test_default_wms_url_param_config(DummyRenderInfo): config = renderer.get_wms_url_params() # Do the check for this test. Value should be the default setting. assert config == {'TRANSPARENT': 'true'} + + +def test_toc_pages_default_config(): + Config._config = None + Config.init('./tests/contrib.print_proxy.mapfish_print/resources/test_config.yml', 'pyramid_oereb') + 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 default_toc_length == 2 +