The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(telegram): trim the video-metadata suites and map the contributor email
teknium1c9f4a47827e8
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..5a88732d3e4--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1 @@+stevehsu0524diff --git a/tests/gateway/test_telegram_video_metadata.py b/tests/gateway/test_telegram_video_metadata.pyindex 7444abaa87f..a7f98f42868 100644--- a/tests/gateway/test_telegram_video_metadata.py+++ b/tests/gateway/test_telegram_video_metadata.py@@ -76,19 +76,6 @@ async def test_send_video_without_probeable_media_omits_metadata(monkeypatch, tmassert "duration" not in kwargs and "thumbnail" not in kwargs-def test_video_helpers_degrade_without_ffmpeg(monkeypatch, tmp_path):- """No ffprobe/ffmpeg on the host means no metadata, never a failed send."""- monkeypatch.setattr(shutil, "which", lambda _name: None)- missing = str(tmp_path / "clip.mp4")-- assert telegram_mod._probe_video_geometry(missing) == {}- assert telegram_mod._video_thumbnail_jpeg(missing, 5) is None--- not (shutil.which("ffmpeg") and shutil.which("ffprobe")),- reason="needs ffmpeg/ffprobe to synthesise a real clip",-)def test_video_helpers_read_real_geometry(tmp_path):"""On a real 16:9 clip the helpers report the true size and a 16:9 thumbnail."""clip = tmp_path / "clip.mp4"diff --git a/tests/tools/test_telegram_send_message_video_metadata.py b/tests/tools/test_telegram_send_message_video_metadata.pyindex 2b460496828..f0edd874e38 100644--- a/tests/tools/test_telegram_send_message_video_metadata.py+++ b/tests/tools/test_telegram_send_message_video_metadata.py@@ -62,19 +62,3 @@ async def test_video_send_without_probeable_file_still_sends(monkeypatch, tmp_pakwargs = bot.send_video.await_args.kwargsassert "width" not in kwargs and "thumbnail" not in kwargs---async def test_non_video_extension_never_probes_geometry(monkeypatch, tmp_path):- called = []- monkeypatch.setattr("plugins.platforms.telegram.adapter._probe_video_geometry",- lambda p: called.append(p) or {"width": 720, "height": 1280, "duration": 59})- archive = tmp_path / "bundle.zip"- archive.write_bytes(b"PK\x03\x04" + b"\x00" * 16)- bot = _fake_bot(send_document=True)-- await _send(bot, archive)-- bot.send_document.assert_awaited_once()- assert "width" not in bot.send_document.await_args.kwargs- assert called == [], "only video extensions carry video geometry"