tamcolors.tests package¶
Subpackages¶
- tamcolors.tests.tam_basic_tests package
- tamcolors.tests.tam_io_tests package
- Submodules
- tamcolors.tests.tam_io_tests.any_drivers_tests module
- tamcolors.tests.tam_io_tests.io_tam_tests module
- tamcolors.tests.tam_io_tests.tam_colors_tests module
- tamcolors.tests.tam_io_tests.tam_keys_tests module
- tamcolors.tests.tam_io_tests.tam_surface_tests module
- tamcolors.tests.tam_io_tests.uni_drivers_tests module
- tamcolors.tests.tam_io_tests.win_drivers_tests module
- Module contents
- tamcolors.tests.tam_tests package
- tamcolors.tests.tam_tools_tests package
- Submodules
- tamcolors.tests.tam_tools_tests.tam_color_palette_tests module
- tamcolors.tests.tam_tools_tests.tam_fade_tests module
- tamcolors.tests.tam_tools_tests.tam_film_tests module
- tamcolors.tests.tam_tools_tests.tam_key_manager_tests module
- tamcolors.tests.tam_tools_tests.tam_list_surface_tests module
- tamcolors.tests.tam_tools_tests.tam_menu_tests module
- tamcolors.tests.tam_tools_tests.tam_placing_tests module
- tamcolors.tests.tam_tools_tests.tam_print_tests module
- tamcolors.tests.tam_tools_tests.tam_str_tests module
- tamcolors.tests.tam_tools_tests.tam_text_box_tests module
- Module contents
- tamcolors.tests.tests_tests package
- tamcolors.tests.utils_tests package
- Submodules
- tamcolors.tests.utils_tests.compress_tests module
- tamcolors.tests.utils_tests.encryption_tests module
- tamcolors.tests.utils_tests.identifier_tests module
- tamcolors.tests.utils_tests.immutable_cache_tests module
- tamcolors.tests.utils_tests.log_tests module
- tamcolors.tests.utils_tests.object_packer_tests module
- tamcolors.tests.utils_tests.tcp_tests module
- tamcolors.tests.utils_tests.timer_tests module
- tamcolors.tests.utils_tests.transport_optimizer_tests module
- Module contents
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