本文整理汇总了Python中processing.algs.otb.OTBTester.MakefileParser.test_algos方法的典型用法代码示例。如果您正苦于以下问题:Python MakefileParser.test_algos方法的具体用法?Python MakefileParser.test_algos怎么用?Python MakefileParser.test_algos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类processing.algs.otb.OTBTester.MakefileParser
的用法示例。
在下文中一共展示了MakefileParser.test_algos方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_processing_mapping
# 需要导入模块: from processing.algs.otb.OTBTester import MakefileParser [as 别名]
# 或者: from processing.algs.otb.OTBTester.MakefileParser import test_algos [as 别名]
def test_processing_mapping():
mkf = MakefileParser()
the_tests = mkf.test_algos()
clients = get_client_apps()
already_tested = set()
for t in the_tests:
test_name = 'test_%s' % t
if the_tests[t][0].split(" ")[0] in clients:
skip = False
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
runnable = the_tests[t][0].split(" ")[0]
if runnable not in already_tested:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
already_tested.add(runnable)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
示例2: unfiltered_processing_mapping
# 需要导入模块: from processing.algs.otb.OTBTester import MakefileParser [as 别名]
# 或者: from processing.algs.otb.OTBTester.MakefileParser import test_algos [as 别名]
def unfiltered_processing_mapping():
mkf = MakefileParser()
the_tests = mkf.test_algos()
for t in the_tests:
test_name = 'test_std_%s' % t
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
示例3: ut_generator
# 需要导入模块: from processing.algs.otb.OTBTester import MakefileParser [as 别名]
# 或者: from processing.algs.otb.OTBTester.MakefileParser import test_algos [as 别名]
if the_tests[t][0].split(" ")[0] in clients:
skip = False
if the_tests[t][1] is None:
skip = True
else:
if the_tests[t][1] == "":
skip = True
if not skip:
runnable = the_tests[t][0].split(" ")[0]
if runnable not in already_tested:
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
already_tested.add(runnable)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequence)
unittest.TextTestRunner(verbosity=2).run(suite)
def test_xml_generation():
create_xml_descriptors()
if __name__ == '__main__':
mkf = MakefileParser()
the_tests = mkf.test_algos()
for t in the_tests:
test_name = 'test_%s' % t
test = ut_generator(test_name, the_tests[t])
setattr(TestSequence, test_name, test)
unittest.main()