From 85fc568a45648b185e4d6ec08a679e144bfd56af Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 01:18:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20QA:=20Add=20test=20for=20Subtitl?= =?UTF-8?q?eProcessor=20markdown=20edge=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daggerstuff <261005129+daggerstuff@users.noreply.github.com> --- tests/utils/test_subtitle_processor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/utils/test_subtitle_processor.py b/tests/utils/test_subtitle_processor.py index 8cf05151..afa61e5d 100644 --- a/tests/utils/test_subtitle_processor.py +++ b/tests/utils/test_subtitle_processor.py @@ -14,3 +14,13 @@ def test_clean_vtt_removes_metadata_and_timestamps(): """ result = SubtitleProcessor.clean_vtt(vtt_content) assert result == "Hello Hello world" + +def test_format_as_markdown_empty_metadata(): + text = "This is a sentence. This is another! And a third?" + metadata = {} + + result = SubtitleProcessor.format_as_markdown(text, metadata) + + assert "# Unknown Title" in result + assert "**Channel:** Unknown Channel" in result + assert "This is a sentence. This is another! And a third?" in result