本文整理汇总了Python中test_qgspallabeling_base.TestQgsPalLabeling.tearDownClass方法的典型用法代码示例。如果您正苦于以下问题:Python TestQgsPalLabeling.tearDownClass方法的具体用法?Python TestQgsPalLabeling.tearDownClass怎么用?Python TestQgsPalLabeling.tearDownClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类test_qgspallabeling_base.TestQgsPalLabeling
的用法示例。
在下文中一共展示了TestQgsPalLabeling.tearDownClass方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
"""Run after all tests"""
TestQgsPalLabeling.tearDownClass()
cls.removeMapLayer(cls.layer)
cls.layer = None
# avoid crash on finish, probably related to https://bugreports.qt.io/browse/QTBUG-35760
QThreadPool.globalInstance().waitForDone()
示例2: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
"""Run after all tests"""
TestQgsPalLabeling.tearDownClass()
# layers removed, save empty project file
cls._TestProj.write()
if "PAL_SERVER_TEMP" in os.environ:
MAPSERV.stop_processes()
MAPSERV.open_temp_dir()
else:
MAPSERV.shutdown()
示例3: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
TestQgsPalLabeling.tearDownClass()
cls.removeMapLayer(cls.layer)
cls.layer = None
示例4: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
TestQgsPalLabeling.tearDownClass()
# avoid crash on finish, probably related to https://bugreports.qt.io/browse/QTBUG-35760
QThreadPool.globalInstance().waitForDone()
示例5: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
"""Run after all tests"""
TestQgsPalLabeling.tearDownClass()
# layers removed, save empty project file
cls._TestProj.write()
示例6: tearDownClass
# 需要导入模块: from test_qgspallabeling_base import TestQgsPalLabeling [as 别名]
# 或者: from test_qgspallabeling_base.TestQgsPalLabeling import tearDownClass [as 别名]
def tearDownClass(cls):
"""Run after all tests"""
TestQgsPalLabeling.tearDownClass()