当前位置: 首页>>代码示例>>Python>>正文


Python test_qgspallabeling_tests.suiteTests函数代码示例

本文整理汇总了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())
开发者ID:Jokenbol,项目名称:QGIS,代码行数:30,代码来源:test_qgspallabeling_canvas.py

示例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())
开发者ID:vmora,项目名称:QGIS,代码行数:30,代码来源:test_qgspallabeling_server.py

示例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())
开发者ID:GrokImageCompression,项目名称:QGIS,代码行数:30,代码来源:test_qgspallabeling_canvas.py

示例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())
开发者ID:meizhoubao,项目名称:QGIS,代码行数:30,代码来源:test_qgspallabeling_server.py


注:本文中的test_qgspallabeling_tests.suiteTests函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。