Skip to content

Commit 2dba9fc

Browse files
signedav3nids
authored andcommittedJan 22, 2018
take list instead of map for test
in unittest it needs to take a list instaed of the map as a test of valuemap
1 parent 481b624 commit 2dba9fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎tests/src/python/test_qgseditwidgets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ def test_ValueMap_set_get(self):
119119
reg = QgsGui.editorWidgetRegistry()
120120
configWdg = reg.createConfigWidget('ValueMap', layer, 0, None)
121121

122-
config = {'map': {'two': '2', 'twoandhalf': '2.5', 'NULL text': 'NULL',
123-
'nothing': self.VALUEMAP_NULL_TEXT}}
122+
config = {'map': [ {'two': '2'}, {'twoandhalf': '2.5'}, {'NULL text': 'NULL'}, {'nothing': self.VALUEMAP_NULL_TEXT} ] }
124123

125124
# Set a configuration containing values and NULL and check if it
126125
# is returned intact.

0 commit comments

Comments
 (0)
Please sign in to comment.