refactor(server): register loaded module in sys.modules, add __all__

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 19:54:37 -07:00
parent ad660afae3
commit c46ff2ff1a
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
"""Tests for the server.mf loader."""
def test_mf_reexports_musicfetch_symbols():
from server import mf
assert hasattr(mf, "Hit")
@@ -6,6 +9,7 @@ def test_mf_reexports_musicfetch_symbols():
assert callable(mf.act_youtube)
assert callable(mf.act_lidarr_album)
assert callable(mf.act_lidarr_artist)
assert isinstance(mf.QUALITY_CHOICES, list)
def test_mf_hit_constructs():