mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -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):
|
def testRasterMarker_remote(self):
|
||||||
symbol = QgsRasterMarkerSymbolLayer(
|
symbol = QgsRasterMarkerSymbolLayer(
|
||||||
path="https://example.com/image.png",
|
path="file://localhost/image.png",
|
||||||
)
|
)
|
||||||
_, root = self.symbolToSld(symbol)
|
_, root = self.symbolToSld(symbol)
|
||||||
href_attr = (
|
href_attr = (
|
||||||
@ -281,7 +281,7 @@ class TestQgsSymbolLayerCreateSld(QgisTestCase):
|
|||||||
.attributes()
|
.attributes()
|
||||||
.namedItem("xlink:href")
|
.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()
|
mime_elem = root.elementsByTagName("se:Format").item(0).toElement()
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
mime_elem.text(),
|
mime_elem.text(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user