From 359f00f3035519e2b7857de87afa9832653c4f40 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 30 May 2025 14:28:28 +1000 Subject: [PATCH] Don't use remote resource for test --- tests/src/python/test_qgssymbollayer_createsld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/python/test_qgssymbollayer_createsld.py b/tests/src/python/test_qgssymbollayer_createsld.py index c0d51b33b46..d3c690a8282 100644 --- a/tests/src/python/test_qgssymbollayer_createsld.py +++ b/tests/src/python/test_qgssymbollayer_createsld.py @@ -272,7 +272,7 @@ class TestQgsSymbolLayerCreateSld(QgisTestCase): def testRasterMarker_remote(self): symbol = QgsRasterMarkerSymbolLayer( - path="https://example.com/image.png", + path="file://localhost/image.png", ) _, root = self.symbolToSld(symbol) href_attr = ( @@ -281,7 +281,7 @@ class TestQgsSymbolLayerCreateSld(QgisTestCase): .attributes() .namedItem("xlink:href") ) - self.assertEqual("https://example.com/image.png", href_attr.nodeValue()) + self.assertEqual("file://localhost/image.png", href_attr.nodeValue()) mime_elem = root.elementsByTagName("se:Format").item(0).toElement() self.assertEqual( mime_elem.text(),