From 3f91f42d4c5d4a3c66d0ec6d786fe3d272ed688c Mon Sep 17 00:00:00 2001 From: David Larlet Date: Sat, 23 Nov 2024 15:58:06 -0500 Subject: [PATCH] chore: attempt to fix CI tests related to `/hot/` --- umap/tests/fixtures/test_upload_data.umap | 2 +- umap/tests/integration/test_import.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/umap/tests/fixtures/test_upload_data.umap b/umap/tests/fixtures/test_upload_data.umap index 0392e2c23..0773415c6 100644 --- a/umap/tests/fixtures/test_upload_data.umap +++ b/umap/tests/fixtures/test_upload_data.umap @@ -25,7 +25,7 @@ "limitBounds": {}, "tilelayer": { "maxZoom": 20, - "url_template": "https://tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", + "url_template": "https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", "minZoom": 0, "attribution": "map data © [[https://osm.org/copyright|OpenStreetMap contributors]] under ODbL - Tiles © HOT", "name": "OSM Humanitarian (OSM-FR)" diff --git a/umap/tests/integration/test_import.py b/umap/tests/integration/test_import.py index 67460f0a0..4ab865243 100644 --- a/umap/tests/integration/test_import.py +++ b/umap/tests/integration/test_import.py @@ -1,5 +1,4 @@ import json -import os import platform import re from pathlib import Path @@ -90,7 +89,7 @@ def test_umap_import_from_textarea(live_server, tilelayer, page, settings): expect(page.get_by_text("Cities")).to_be_visible() expect(page.locator(".leaflet-control-minimap")).to_be_visible() expect( - page.locator('img[src="https://tile.openstreetmap.fr/hot/6/32/21.png"]') + page.locator('img[src="https://tile.openstreetmap.fr/6/32/21.png"]') ).to_be_visible() # Should not have imported id, while in the file options assert not page.evaluate("U.MAP.properties.id")