tamcolors.tests package

Subpackages

Submodules

tamcolors.tests.all_tests module

tamcolors.tests.all_tests.load_tests(loader, other_tests=None, pattern=None)
tamcolors.tests.all_tests.stability_check(ret_bool=True, run_slow=False)

info: run all TAM tests :param ret_bool: bool :param run_slow: bool :return: (int, int) or bool: (test_pasted, test_ran) or True if all test pasted

tamcolors.tests.all_tests.tests_main(run_slow=False)

info: the main way tamcolors run tests :param run_slow: bool: will run slow tests :return: bool

tamcolors.tests.test_multi_task_helper module

class tamcolors.tests.test_multi_task_helper.MultiTaskHelper

Bases: object

multiple_processes_helper(tasks, timeout=120)

info: will run tasks in a thread :param tasks: list or tuple: [(func, tuple, dict), …] :param timeout: int :return:

multiple_threads_helper(tasks, timeout=120)

info: will run tasks in a thread :param tasks: list or tuple: [(func, tuple, dict), …] :param timeout: int :return:

classmethod task(func, *args, **kwargs)

info: will make a Task :param func: Function :param args: tuple :param kwargs: dict :return: Task

tamcolors.tests.test_multi_task_helper.process_runner(error_ret, func, *args, **kwargs)

info: will run the task :param error_ret: list: away to return an error :param func: function :param args: tuple :param kwargs: dict :return:

tamcolors.tests.test_utils module

tamcolors.tests.test_utils.enable_slow_tests(enable=True)

info: will enable slow tests :param enable: bool :return:

tamcolors.tests.test_utils.is_slow_tests_enabled()

info: will check iif slow tests are enabled :return: bool

tamcolors.tests.test_utils.slow_test(function)

info: slow_test decorators :param function: function :return: function

Module contents