Disable flaky test

See https://travis-ci.org/qgis/QGIS/jobs/606030466#L6726
This commit is contained in:
Matthias Kuhn 2019-11-20 08:22:06 +01:00 committed by Nyall Dawson
parent ffb38e8a32
commit 39741e549e

View File

@ -69,6 +69,7 @@ class TestQgsSvgCache(unittest.TestCase):
while not self.fetched:
QCoreApplication.processEvents()
@unittest.skipIf(os.environ.get('TRAVIS', '') == 'true', 'Failing on Travis')
def testRemoteSVG(self):
"""Test fetching remote svg."""
url = 'http://localhost:{}/qgis_local_server/sample_svg.svg'.format(str(TestQgsSvgCache.port))
@ -83,6 +84,7 @@ class TestQgsSvgCache(unittest.TestCase):
strokeWidth=0.1, widthScaleFactor=1)
self.assertTrue(self.imageCheck('Remote SVG', 'remote_svg', image))
@unittest.skipIf(os.environ.get('TRAVIS', '') == 'true', 'Failing on Travis')
def testRemoteSvgAsText(self):
"""Test fetching remote svg with text mime format - e.g. github raw svgs"""
url = 'http://localhost:{}/qgis_local_server/svg_as_text.txt'.format(str(TestQgsSvgCache.port))