Skip to content

Commit

Permalink
Ah f*** it, no test for you Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 17, 2020
1 parent 9ae2fe0 commit 8aec98a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/python/test_qgslabellinesettings.py
Expand Up @@ -11,6 +11,7 @@
__copyright__ = 'Copyright 2019, The QGIS Project'

import qgis # NOQA
import os

from qgis.core import (QgsProperty,
QgsPropertyCollection,
Expand All @@ -29,6 +30,8 @@

class TestQgsLabelLineSettings(unittest.TestCase):

@unittest.skipIf(os.environ.get('TRAVIS', '') == 'true',
'Python version too old for enum classes to work')
def test_line_settings(self):
"""
Test line settings
Expand Down Expand Up @@ -122,6 +125,8 @@ def test_line_settings(self):
self.assertTrue(pal_settings.lineSettings().overrunDistanceMapUnitScale().minScale, 1)
self.assertTrue(pal_settings.lineSettings().overrunDistanceMapUnitScale().maxScale, 2)

@unittest.skipIf(os.environ.get('TRAVIS', '') == 'true',
'Python version too old for enum classes to work')
def testUpdateDataDefinedProps(self):
settings = QgsLabelLineSettings()
settings.setPlacementFlags(QgsLabeling.LinePlacementFlag.OnLine)
Expand Down

0 comments on commit 8aec98a

Please sign in to comment.