20 lines
568 B
Python
20 lines
568 B
Python
"""Tests for the server.mf loader."""
|
|
|
|
|
|
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)
|
|
assert isinstance(mf.QUALITY_CHOICES, list)
|
|
|
|
|
|
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"
|