Skip to content

Commit

Permalink
Fix QgsMapBoxGlConverter and QgsSymbolLayerReadSld tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 2, 2024
1 parent aaf92bc commit f811afe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsmapboxglconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,14 @@ def testCircleLayer(self):
expected_properties = {
'angle': '0',
'cap_style': 'square',
'color': '22,22,22,153',
'color': '22,22,22,153,rgb:0.08627450980392157,0.08627450980392157,0.08627450980392157,0.59999999999999998',
'horizontal_anchor_point': '1',
'joinstyle': 'bevel',
'name': 'circle',
'offset': '11,22',
'offset_map_unit_scale': '3x:0,0,0,0,0,0',
'offset_unit': 'Pixel',
'outline_color': '46,46,46,128',
'outline_color': '46,46,46,128,rgb:0.1803921568627451,0.1803921568627451,0.1803921568627451,0.50000762951094835',
'outline_style': 'solid',
'outline_width': '3',
'outline_width_map_unit_scale': '3x:0,0,0,0,0,0',
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgssymbollayer_readsld.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def testLineWidth():
def testLineOpacity():
# stroke-opacity CSSParameter NOT within ogc:Literal
# stroke-opacity=0.1
self.assertEqual(props['line_color'], '0,62,186,25')
self.assertEqual(props['line_color'], '0,62,186,25,rgb:0,0.24313725490196078,0.72941176470588232,0.09803921568627451')

testLineColor()
testLineWidth()
Expand Down Expand Up @@ -433,7 +433,7 @@ def testLineWidth():
def testLineOpacity():
# stroke-opacity SvgParameter NOT within ogc:Literal
# stroke-opacity=0.1
self.assertEqual(props['line_color'], '0,62,186,24')
self.assertEqual(props['line_color'], '0,62,186,24,rgb:0,0.24313725490196078,0.72941176470588232,0.09411764705882353')

testLineColor()
testLineWidth()
Expand Down

0 comments on commit f811afe

Please sign in to comment.