feat(server): load musicfetch binary as importable module

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 19:49:18 -07:00
parent 11a57bfa67
commit ad660afae3
4 changed files with 39 additions and 0 deletions

15
tests/test_mf_loader.py Normal file
View File

@@ -0,0 +1,15 @@
def test_mf_reexports_musicfetch_symbols():
from server import mf
assert hasattr(mf, "Hit")
assert callable(mf.build_combined_hits)
assert callable(mf.pick)
assert callable(mf.act_youtube)
assert callable(mf.act_lidarr_album)
assert callable(mf.act_lidarr_artist)
def test_mf_hit_constructs():
from server import mf
h = mf.Hit(source="youtube", kind="track", title="x", artist="y")
assert h.source == "youtube"
assert h.artist == "y"