def test_algorithms(self): """ This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml """ ver = processing.version() with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream: algorithm_tests = yaml.load(stream) for algtest in algorithm_tests['tests']: yield self.check_algorithm, algtest['name'], algtest
def test_algorithms(self): """ This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml """ ver = processing.version() print "Processing {}.{}.{}".format(ver / 10000, ver / 100 % 100, ver % 100) with open(os.path.join(processingTestDataPath(), self.test_definition_file()), "r") as stream: algorithm_tests = yaml.load(stream) for algtest in algorithm_tests["tests"]: yield self.check_algorithm, algtest["name"], algtest
# подключение модулей import sys import os sys.path.append(os.path.join(sys.path[0], 'modules')) import connect import processing #%% Parse ser = {} # первая строка - для работы с изначальным файлом (который вы нам дали) # вторая строка - для работы с файлом, в который вынесены названия оборудования # ser = connect.start('./excel/certificates.xlsx') ser = connect.start2('./excel/output.xlsx') print('Файл открылся') # сначала отбираем версию, а потом всё остальное ser = processing.version(ser) print('Версия убралась') ser = processing.smth(ser) print('Всё остальное обработалось') #%% End # превращаем объект ser в excel файл под названием output4 # (можно как угодно назвать) connect.end(ser, './excel/output4.xlsx') print('Закончилось')