Merge pull request #1467 from umap-project/test-tile-url

Use real tile URL in tests
This commit is contained in:
Yohan Boniface 2023-12-15 17:13:22 +01:00 committed by GitHub
commit 668bab6247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,