mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Don't use remote resource for test
This commit is contained in:
parent
b8f45ad2be
commit
359f00f303
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user