17 lines
408 B
Python
17 lines
408 B
Python
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)
|