Skip to content

Commit

Permalink
Mark composer html multiframe test as expected to fail for now
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Sep 24, 2012
1 parent 5f79bcb commit 1dc9302
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/python/test_qgscomposerhtml.py
Expand Up @@ -27,10 +27,21 @@
QgsComposerMultiFrame)

from qgscompositionchecker import QgsCompositionChecker
# support python < 2.7 via unittest2
# needed for expected failure decorator
if sys.version_info[0:2] < (2,7):
try:
from unittest2 import TestCase, expectedFailure
except ImportError:
print "You need to install unittest2 to run the salt tests"
sys.exit(1)
else:
from unittest import TestCase, expectedFailure

QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()
TEST_DATA_DIR = unitTestDataPath()


class TestQgsComposerMap(unittest.TestCase):

def setUp(self):
Expand Down Expand Up @@ -73,6 +84,7 @@ def testTable(self):
qDebug(myMessage)
assert myResult, myMessage

@expectedFailure
def testTableMultiFrame(self):
"""Test we can render to multiframes."""
composerHtml = QgsComposerHtml(self.mComposition, False)
Expand Down

0 comments on commit 1dc9302

Please sign in to comment.