From b9f6645162a83880564a6bc6c44ee7a845511490 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 14 Dec 2023 22:55:56 +0100 Subject: [PATCH] Use real tile URL in tests It's easier to debug integration tests screenshots (otherwise background is only grey). --- umap/tests/base.py | 2 +- umap/tests/integration/test_export_map.py | 2 +- umap/tests/test_map_views.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/tests/base.py b/umap/tests/base.py index 3109f568..687793e6 100644 --- a/umap/tests/base.py +++ b/umap/tests/base.py @@ -81,7 +81,7 @@ class MapFactory(factory.django.DjangoModelFactory): "attribution": "\xa9 OSM Contributors", "maxZoom": 18, "minZoom": 0, - "url_template": "http://{s}.osm.fr/{z}/{x}/{y}.png", + "url_template": "https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", }, "tilelayersControl": True, "zoom": 7, diff --git a/umap/tests/integration/test_export_map.py b/umap/tests/integration/test_export_map.py index ef15dc70..28b215a1 100644 --- a/umap/tests/integration/test_export_map.py +++ b/umap/tests/integration/test_export_map.py @@ -61,7 +61,7 @@ def test_umap_export(map, live_server, datalayer, page): "attribution": "© OSM Contributors", "maxZoom": 18, "minZoom": 0, - "url_template": "http://{s}.osm.fr/{z}/{x}/{y}.png", + "url_template": "https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", }, "tilelayersControl": True, "zoom": 7, diff --git a/umap/tests/test_map_views.py b/umap/tests/test_map_views.py index f56b316e..6ef798e2 100644 --- a/umap/tests/test_map_views.py +++ b/umap/tests/test_map_views.py @@ -624,7 +624,7 @@ def test_download(client, map, datalayer): "attribution": "© OSM Contributors", "maxZoom": 18, "minZoom": 0, - "url_template": "http://{s}.osm.fr/{z}/{x}/{y}.png", + "url_template": "https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", }, "tilelayersControl": True, "zoom": 7,