Don't try to read remote file in test, we don't actually need a valid url to test conversion

This commit is contained in:
Nyall Dawson 2025-05-30 10:22:42 +10:00
parent 99b8a36e9f
commit b8f45ad2be
2 changed files with 2 additions and 2 deletions

View File

@ -628,7 +628,7 @@ class TestQgsSymbolLayerReadSld(QgisTestCase):
maplayer.loadSldStyle(file_path) maplayer.loadSldStyle(file_path)
marker = maplayer.renderer().symbol().symbolLayers()[0] marker = maplayer.renderer().symbol().symbolLayers()[0]
self.assertEqual(marker.__class__, QgsRasterMarkerSymbolLayer) self.assertEqual(marker.__class__, QgsRasterMarkerSymbolLayer)
self.assertEqual(marker.path(), "https://example.com/image.png") self.assertEqual(marker.path(), "file://localhost/image.png")
def test_read_QgsRasterMarkerSymbolLayer_local(self): def test_read_QgsRasterMarkerSymbolLayer_local(self):
"""Test reading raster markers""" """Test reading raster markers"""

View File

@ -10,7 +10,7 @@
<se:PointSymbolizer> <se:PointSymbolizer>
<se:Graphic> <se:Graphic>
<se:ExternalGraphic> <se:ExternalGraphic>
<se:OnlineResource xlink:type="simple" xlink:href="https://example.com/image.png"/> <se:OnlineResource xlink:type="simple" xlink:href="file://localhost/image.png"/>
<se:Format>application/octet-stream</se:Format> <se:Format>application/octet-stream</se:Format>
</se:ExternalGraphic> </se:ExternalGraphic>
<se:Rotation> <se:Rotation>