vikit.postprocessing.subtitles.video_subtitle_renderer_test =========================================================== .. py:module:: vikit.postprocessing.subtitles.video_subtitle_renderer_test Overview -------- .. list-table:: Function :header-rows: 0 :widths: auto :class: summarytable * - :py:obj:`test_convert_color_to_rgb `\ (color, expected_value) - \- * - :py:obj:`test_init_renderer__invalid_arg__fails `\ (init_kwargs, render_kwargs, expected_exception, expected_message) - \- * - :py:obj:`test_normalize_color `\ (color, expected_value) - \- * - :py:obj:`test_render_subtitles__invalid_params__no_subtitles_in_range `\ () - \- * - :py:obj:`test_render_subtitles__valid_input `\ (subtitle_style) - \- * - :py:obj:`test_split_subtitles_by_group `\ (subtitles, group_duration_sec, expected_group_count) - \- * - :py:obj:`valid_init_kwargs `\ (remove, update) - \- * - :py:obj:`valid_render_kwargs `\ (remove, update) - \- .. list-table:: Attributes :header-rows: 0 :widths: auto :class: summarytable * - :py:obj:`TEST_SUBTITLES ` - \- Functions --------- .. py:function:: test_convert_color_to_rgb(color, expected_value) .. py:function:: test_init_renderer__invalid_arg__fails(init_kwargs, render_kwargs, expected_exception, expected_message) .. py:function:: test_normalize_color(color, expected_value) .. py:function:: test_render_subtitles__invalid_params__no_subtitles_in_range() .. py:function:: test_render_subtitles__valid_input(subtitle_style) .. py:function:: test_split_subtitles_by_group(subtitles, group_duration_sec, expected_group_count) .. py:function:: valid_init_kwargs(remove: list[str] = [], update: dict[str, any] = {}) .. py:function:: valid_render_kwargs(remove: list[str] = [], update: dict[str, any] = {}) Attributes ---------- .. py:data:: TEST_SUBTITLES :value: [(0.0, 1.5, 'word1'), (1.5, 3.0, 'word2'), (3.0, 4.5, 'word3'), (4.5, 6.0, 'word4')]