Use real tile URL in tests

It's easier to debug integration tests screenshots (otherwise
background is only grey).
This commit is contained in:
Yohan Boniface 2023-12-14 22:55:56 +01:00
parent 445ce7b6ba
commit b9f6645162
3 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@ class MapFactory(factory.django.DjangoModelFactory):
"attribution": "\xa9 OSM Contributors", "attribution": "\xa9 OSM Contributors",
"maxZoom": 18, "maxZoom": 18,
"minZoom": 0, "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, "tilelayersControl": True,
"zoom": 7, "zoom": 7,

View file

@ -61,7 +61,7 @@ def test_umap_export(map, live_server, datalayer, page):
"attribution": "© OSM Contributors", "attribution": "© OSM Contributors",
"maxZoom": 18, "maxZoom": 18,
"minZoom": 0, "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, "tilelayersControl": True,
"zoom": 7, "zoom": 7,

View file

@ -624,7 +624,7 @@ def test_download(client, map, datalayer):
"attribution": "© OSM Contributors", "attribution": "© OSM Contributors",
"maxZoom": 18, "maxZoom": 18,
"minZoom": 0, "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, "tilelayersControl": True,
"zoom": 7, "zoom": 7,