Skip to content
Permalink
Browse files

take list instead of map for test

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 2dba9fc80745ec54f43ab7edf2bbb47f7eb69715
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/src/python/test_qgseditwidgets.py
@@ -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.

0 comments on commit 2dba9fc

Please sign in to comment.
You can’t perform that action at this time.