Skip to content

Commit

Permalink
Fix for failure in unit test thanks to Massimo.
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Oct 29, 2012
1 parent ae6ec44 commit 97cb7bd
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions tests/src/python/test_qgssymbollayerv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,39 @@
Qt)
from PyQt4.QtXml import QDomDocument

from qgis.core import (QgsSymbolLayerV2,
QgsSimpleFillSymbolLayerV2,
QgsVectorFieldSymbolLayer,
QgsMarkerSymbolLayerV2,
from qgis.core import (QgsCentroidFillSymbolLayerV2,
QgsEllipseSymbolLayerV2,
QgsFontMarkerSymbolLayerV2,
QgsCentroidFillSymbolLayerV2,
QgsPointPatternFillSymbolLayer,
QgsSVGFillSymbolLayer,
QgsLineDecorationSymbolLayerV2,
QgsLinePatternFillSymbolLayer,
QgsMarkerLineSymbolLayerV2,
QgsEllipseSymbolLayerV2,
QgsMarkerSymbolLayerV2,
QgsPointPatternFillSymbolLayer,
QgsSimpleFillSymbolLayerV2,
QgsSimpleLineSymbolLayerV2,
QgsSimpleMarkerSymbolLayerV2,
QgsSVGFillSymbolLayer,
QgsSvgMarkerSymbolLayerV2,
QgsSymbolLayerV2,
QgsVectorFieldSymbolLayer,
QgsCentroidFillSymbolLayerV2,
QgsEllipseSymbolLayerV2,
QgsFillSymbolLayerV2,
QgsFontMarkerSymbolLayerV2,
QgsImageFillSymbolLayer,
QgsLineDecorationSymbolLayerV2,
QgsLinePatternFillSymbolLayer,
QgsCentroidFillSymbolLayerV2,
QgsLineSymbolLayerV2,
QgsMarkerLineSymbolLayerV2,
QgsSimpleMarkerSymbolLayerV2,
QgsMarkerSymbolLayerV2,
QgsPointPatternFillSymbolLayer,
QgsSimpleFillSymbolLayerV2,
QgsSimpleLineSymbolLayerV2,
QgsLineDecorationSymbolLayerV2
)
QgsSimpleMarkerSymbolLayerV2,
QgsSVGFillSymbolLayer,
QgsSvgMarkerSymbolLayerV2,
QgsVectorFieldSymbolLayer,
)
from utilities import (unitTestDataPath,
getQgisTestApp,
TestCase,
Expand All @@ -78,11 +90,6 @@ class TestQgsSymbolLayerV2(TestCase):
returns NULL
'''

# Currently fails with:
# 49: File "/home/timlinux/dev/cpp/Quantum-GIS/tests/src/python/test_qgssymbollayerv2.py", line 94, in testBinding
# 49: assert mExpectedType == mType, mMessage
# 49: AssertionError: Expected "<type 'PyQt4.QtCore.pyqtWrapperType'>" got "None"
@expectedFailure
def testBinding(self):
'''Test python bindings existance.'''
mType = type(QgsSymbolLayerV2)
Expand Down

0 comments on commit 97cb7bd

Please sign in to comment.