本文整理汇总了Python中test_qgspallabeling_tests.suiteTests函数的典型用法代码示例。如果您正苦于以下问题:Python suiteTests函数的具体用法?Python suiteTests怎么用?Python suiteTests使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了suiteTests函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: checkTest
def checkTest(self, **kwargs):
self.lyr.writeToLayer(self.layer)
self.saveControlImage()
self.assertTrue(*self.renderCheck())
class TestCanvasBasePoint(TestCanvasBase):
@classmethod
def setUpClass(cls):
TestCanvasBase.setUpClass()
cls.layer = TestQgsPalLabeling.loadFeatureLayer('point')
class TestCanvasPoint(TestCanvasBasePoint, TestPointBase):
def setUp(self):
"""Run before each test."""
super(TestCanvasPoint, self).setUp()
self.configTest('pal_canvas', 'sp')
if __name__ == '__main__':
# NOTE: unless PAL_SUITE env var is set all test class methods will be run
# SEE: test_qgspallabeling_tests.suiteTests() to define suite
suite = (
['TestCanvasPoint.' + t for t in suiteTests()['sp_suite']]
)
res = runSuite(sys.modules[__name__], suite)
sys.exit(not res.wasSuccessful())
示例2: setUpClass
@classmethod
def setUpClass(cls):
TestServerBase.setUpClass()
cls.layer = TestQgsPalLabeling.loadFeatureLayer('line')
class TestServerLine(TestServerBaseLine, TestLineBase):
def setUp(self):
"""Run before each test."""
super(TestServerLine, self).setUp()
self.configTest('pal_server_line', 'sp')
class TestServerVsCanvasLine(TestServerBaseLine, TestLineBase):
def setUp(self):
super(TestServerVsCanvasLine, self).setUp()
self.configTest('pal_canvas_line', 'sp')
if __name__ == '__main__':
# NOTE: unless PAL_SUITE env var is set all test class methods will be run
# SEE: test_qgspallabeling_tests.suiteTests() to define suite
suite = (
['TestServerPoint.' + t for t in suiteTests()['sp_suite']] +
['TestServerVsCanvasPoint.' + t for t in suiteTests()['sp_vs_suite']]
)
res = runSuite(sys.modules[__name__], suite)
sys.exit(not res.wasSuccessful())
示例3: TestCanvasPoint
cls.layer = TestQgsPalLabeling.loadFeatureLayer("point")
class TestCanvasPoint(TestCanvasBasePoint, TestPointBase):
def setUp(self):
"""Run before each test."""
super(TestCanvasPoint, self).setUp()
self.configTest("pal_canvas", "sp")
class TestCanvasBaseLine(TestCanvasBase):
@classmethod
def setUpClass(cls):
TestCanvasBase.setUpClass()
cls.layer = TestQgsPalLabeling.loadFeatureLayer("line")
class TestCanvasLine(TestCanvasBaseLine, TestLineBase):
def setUp(self):
"""Run before each test."""
super(TestCanvasLine, self).setUp()
self.configTest("pal_canvas_line", "sp")
if __name__ == "__main__":
# NOTE: unless PAL_SUITE env var is set all test class methods will be run
# SEE: test_qgspallabeling_tests.suiteTests() to define suite
suite = ["TestCanvasPoint." + t for t in suiteTests()["sp_suite"]]
res = runSuite(sys.modules[__name__], suite)
sys.exit(not res.wasSuccessful())
示例4: TestServerBasePoint
self.assertTrue(*self.renderCheck(mismatch=mismatch, colortol=colortol, imgpath=self._TestImage))
class TestServerBasePoint(TestServerBase):
@classmethod
def setUpClass(cls):
TestServerBase.setUpClass()
cls.layer = TestQgsPalLabeling.loadFeatureLayer("point")
class TestServerPoint(TestServerBasePoint, TestPointBase):
def setUp(self):
super(TestServerPoint, self).setUp()
self.configTest("pal_server", "sp")
class TestServerVsCanvasPoint(TestServerBasePoint, TestPointBase):
def setUp(self):
super(TestServerVsCanvasPoint, self).setUp()
self.configTest("pal_canvas", "sp")
if __name__ == "__main__":
# NOTE: unless PAL_SUITE env var is set all test class methods will be run
# SEE: test_qgspallabeling_tests.suiteTests() to define suite
suite = ["TestServerPoint." + t for t in suiteTests()["sp_suite"]] + [
"TestServerVsCanvasPoint." + t for t in suiteTests()["sp_vs_suite"]
]
res = runSuite(sys.modules[__name__], suite)
sys.exit(not res.wasSuccessful())