Skip to content

Commit

Permalink
fix test values
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 24, 2024
1 parent 3e5b4c7 commit 97c6f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsmapboxglconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def testParseStepList(self):
11, ["case", [">", 28, ["get", "rank"]], 1, 0],
12, 1,
13, 0
], QgsMapBoxGlStyleConverter.PropertyType.Opacity, conversion_context, 1, 100)
], QgsMapBoxGlStyleConverter.PropertyType.Opacity, conversion_context, 100, 255)
self.assertEqual(res.asExpression(), 'CASE WHEN @vector_tile_zoom >= 13 THEN (0) WHEN @vector_tile_zoom >= 12 THEN (100) WHEN @vector_tile_zoom >= 11 THEN (CASE WHEN ("28" > "rank") THEN 1 ELSE 0 END) WHEN @vector_tile_zoom >= 10 THEN (CASE WHEN ("18" > "rank") THEN 1 ELSE 0 END) WHEN @vector_tile_zoom >= 9 THEN (CASE WHEN ("15" > "rank") THEN 1 ELSE 0 END) WHEN @vector_tile_zoom >= 8 THEN (CASE WHEN ("14" > "rank") THEN 1 ELSE 0 END) WHEN @vector_tile_zoom >= 7 THEN (CASE WHEN "capital" IN (2,4) THEN 100 ELSE 0 END) ELSE (0) END')

def testParseValueList(self):
Expand Down

0 comments on commit 97c6f34

Please sign in to comment.