test: relax video-enrichment isolation check (comment mentions music side)

The whole-file 'music' substring check tripped on a comment ('only polls on the
video side, so the engine isn't spun up on the music side'). Replaced with the
meaningful checks: no music API path (/api/enrichment/) and no music modal call
(openEnrichmentManager).
This commit is contained in:
BoulderBadgeDad 2026-06-14 11:53:09 -07:00
parent aef80eb52d
commit 0afd37351d

View file

@ -251,7 +251,9 @@ def test_video_enrichment_module_referenced_and_isolated():
assert "(function" in src and "})();" in src
assert "window." not in src
assert "/api/video/enrichment/" in src
assert "music" not in src.lower()
# No music API/function calls (a comment may mention the music *side*).
assert "/api/enrichment/" not in src
assert "openEnrichmentManager" not in src
def test_video_settings_module_referenced_and_isolated():