#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------------------------------------------- # Author : Ulrich Carmesin # Source : gitea.ucarmesin.de # https://ucarmesin.de/index.php/it/testautomatisierung-fuer-daten-test/225-konfiguration-der-testanwendung # --------------------------------------------------------------------------------------------------------- import sys import basic.constants as B import unittest import os import inspect import tools.make_tool import tools.conn_tool import test.constants as T import test.testtools import tools.path_const as P import basic.constants as B import tools.data_const as D TEST_FUNCTIONS = ["test_01createWorkspaces"] #TEST_FUNCTIONS = ["test_01getConfigPath"] verbose = False class MyTestCase(unittest.TestCase): mymsg = "--------------------------------------------------------------" def test_01createWorkspaces(self): global mymsg actfunction = str(inspect.currentframe().f_code.co_name) cnttest = 0 if actfunction not in TEST_FUNCTIONS: return job = test.testtools.getJob() tools.make_tool.createWorkspaces(job) MyTestCase.mymsg += "\n----- "+actfunction+" : "+str(cnttest) def test_zzz(self): print(MyTestCase.mymsg) if __name__ == '__main__': verbose = True unittest.main()