Skip to content
Permalink
Browse files

Fix failing TestQgsJsonUtils

  • Loading branch information
nyalldawson committed Apr 2, 2019
1 parent 3c6c0ac commit 6248bb8eea716d3dc77acc81824164dfb53f38c1
@@ -114,6 +114,7 @@ defined.
.. versionadded:: 3.6
%End


bool attributeDisplayName() const;
%Docstring
Returns whether original names of attributes or aliases are printed.
@@ -108,7 +108,7 @@ class CORE_EXPORT QgsJsonExporter
* defined.
* \since QGIS 3.6
*/
void setAttributeDisplayName( bool displayName ) { mAttributeDisplayName = displayName; };
void setAttributeDisplayName( bool displayName ) { mAttributeDisplayName = displayName; }

/**
* Returns whether original names of attributes or aliases are printed.
@@ -745,6 +745,7 @@ def testExportFieldAlias(self):
source.setFieldAlias(1, "alias_fldint")

exporter = QgsJsonExporter()
exporter.setAttributeDisplayName(True)
exporter.setVectorLayer(source)

expected = """{

0 comments on commit 6248bb8

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