feat: add real yt-dlp client and opt-in live test; ffmpeg in worker image

This commit is contained in:
Jonathan
2026-07-10 21:24:05 +02:00
parent 5a3e64b057
commit a93c248aaf
4 changed files with 74 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import os
import pytest
from lyra_worker.adapters._ytdlp import YtDlpClient
pytestmark = pytest.mark.skipif(
not os.environ.get("LYRA_LIVE_TESTS"),
reason="live network test; set LYRA_LIVE_TESTS=1 to run",
)
def test_live_search_returns_results():
results = YtDlpClient().search_album("Radiohead", "In Rainbows")
assert len(results) >= 1
assert all(r["source_ref"] for r in results)