feat: add real yt-dlp client and opt-in live test; ffmpeg in worker image
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user