feat: monitor sweep, real MB browser, and worker-loop wiring

This commit is contained in:
Jonathan
2026-07-11 12:35:07 +02:00
parent 1f23aaa0e8
commit 133f6219ae
6 changed files with 118 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import os
import pytest
pytestmark = pytest.mark.skipif(
not os.environ.get("LYRA_LIVE_TESTS"),
reason="hits the real MusicBrainz API; set LYRA_LIVE_TESTS=1 to run",
)
def test_search_and_browse_real_artist():
from lyra_worker._mbbrowser import MusicBrainzBrowser
browser = MusicBrainzBrowser()
hits = browser.search_artist("John Mayer")
assert hits and any("John Mayer" in h.name for h in hits)
releases = browser.browse_release_groups(hits[0].mbid)
assert any(r.title for r in releases)