Skip to content

Commit

Permalink
take list instead of map for test
Browse files Browse the repository at this point in the history
in unittest it needs to take a list instaed of the map as a test of valuemap
  • Loading branch information
signedav authored and 3nids committed Jan 22, 2018
1 parent 481b624 commit 2dba9fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/src/python/test_qgseditwidgets.py
Expand Up @@ -119,8 +119,7 @@ def test_ValueMap_set_get(self):
reg = QgsGui.editorWidgetRegistry()
configWdg = reg.createConfigWidget('ValueMap', layer, 0, None)

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

# Set a configuration containing values and NULL and check if it
# is returned intact.
Expand Down

0 comments on commit 2dba9fc

Please sign in to comment.