Don't use remote resource for test

This commit is contained in:
Nyall Dawson 2025-05-30 14:28:28 +10:00
parent b8f45ad2be
commit 359f00f303

View File

@ -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(),