test(visualizer): cover the new modes and the full v cycle

This commit is contained in:
beefcarver committed 2026-11-01 09:58:57 -05:00
1 parent 6d188c00bc
commit a42678ef30
2 files changed
+106 -2

No files matched your search

+3 -2
View File
@@ -6,6 +6,7 @@ from datetime import datetime, timedelta, timezone
import pytest
from somafm_tui import config
from somafm_tui.api import Song
from somafm_tui.app import SomaFMApp
from somafm_tui.widgets.help import HelpScreen
@@ -70,11 +71,11 @@ async def test_boot_navigation_filter_favourite_visualizer_help() -> None:
assert app.index == 0
modes = set()
for _ in range(3):
for _ in range(len(config.VISUALIZERS)):
await pilot.press("v")
await pilot.pause()
modes.add(app.visualizer)
assert modes == {"both", "bars", "wave"}
assert modes == set(config.VISUALIZERS)
await pilot.press("question_mark")
await pilot.pause()