Skip to content

Commit

Permalink
Merge pull request #2063 from Dimitar5555/patch-1
Browse files Browse the repository at this point in the history
Use preferred tile.openstreetmap.org URL
  • Loading branch information
yohanboniface authored Aug 19, 2024
2 parents ab8bce9 + f4c3a10 commit 4e770f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umap/tests/integration/test_tilelayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def tilelayers():
TileLayerFactory(
rank=1,
name="OpenStreetMap",
url_template="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
url_template="https://tile.openstreetmap.org/{z}/{x}/{y}.png",
)
TileLayerFactory(
rank=2,
Expand Down Expand Up @@ -76,7 +76,7 @@ def test_map_should_display_first_tilelayer_by_default(
page.goto(f"{live_server.url}/map/new")
tiles = page.locator(".leaflet-tile-pane img")
expect(tiles.first).to_have_attribute(
"src", re.compile(r"https://[abc].tile.openstreetmap.org/\d+/\d+/\d+.png")
"src", re.compile(r"https://tile.openstreetmap.org/\d+/\d+/\d+.png")
)


Expand Down

0 comments on commit 4e770f3

Please sign in to comment.