Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/utils/test_subtitle_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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