#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------------------------------------------- # Author : Ulrich Carmesin # Source : gitea.ucarmesin.de # --------------------------------------------------------------------------------------------------------- import unittest import inspect import os import basic.program import utils.path_tool import utils.path_const as P import utils.config_tool import utils.data_const as D import basic.toolHandling import test.constants import basic.component import basic.constants as B import utils.file_abstract import utils.file_tool import test.testtools import utils.tdata_tool HOME_PATH = test.constants.HOME_PATH conf = {} # here you can select single testfunction for developping the tests # "test_toolhandling", "test_parseSql" -> test of components TEST_FUNCTIONS = ["test_11mapTdata"] # TEST_FUNCTIONS = ["test_11mapTdata"] verbose = False class MyTestCase(unittest.TestCase): mymsg = "--------------------------------------------------------------" def test_11mapTdata(self): global mymsg actfunction = str(inspect.currentframe().f_code.co_name) cnttest = 0 if actfunction not in TEST_FUNCTIONS: return job = test.testtools.getJob() MyTestCase.mymsg += "\n----- "+actfunction+" : "+str(cnttest) def test_zzz(self): print(MyTestCase.mymsg) if __name__ == '__main__': verbose = True unittest.main()