mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
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:
parent
99b8a36e9f
commit
b8f45ad2be
@ -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"""
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user