refactor(player): state.py tests track discrete Restyle.variant

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ben Stull
2026-06-07 22:53:40 -07:00
parent 12a8177793
commit 825d68c653
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ def test_overlay_change_is_a_live_update():
p.update(_controls(content="video", left=0))
t = p.update(_controls(content="video", left=4))
assert t.kind == TransitionKind.LIVE_UPDATE
assert t.playback.plan.overlay.intensity == 1.0
assert t.playback.plan.overlay.level == 4
def test_restyle_change_crossfades_the_substrate():
@@ -65,7 +65,7 @@ def test_restyle_change_crossfades_the_substrate():
p.update(_controls(content="video", right=0))
t = p.update(_controls(content="video", right=4))
assert t.kind == TransitionKind.CROSSFADE
assert t.playback.plan.restyle.blend == 1.0
assert t.playback.plan.restyle.variant == 4
def test_volume_only_change_is_a_live_update():