Patcher: arnoldasr's mods as extended_bpm, phasemeter, rgb_waveform

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Thiemo TizianiandClaude Opus 5.5 committed 2026-10-18 23:49:49 +02:00
1 parent 7dbb4ec6f8
commit 429c9ab8fc
3 files changed
+19 -20

No files matched your search

+8 -8
View File
@@ -95,20 +95,20 @@ def test_boot_area_tampering_caught():
upd.verify(bad, stock, stock.application)
MODS = [('code', '', True, ''), ('utility', '', True, ''), ('overview', '', True, ''),
MODS = [('extended_bpm', '', True, ''), ('phasemeter', '', True, ''), ('rgb_waveform', '', True, ''),
('beatjump', '', True, ''), ('cuecolours', '', True, ''), ('hotcuekeys', '', True, '')]
def test_every_mod_can_be_unticked():
chosen = {m[0] for m in MODS}
cli._toggle(chosen, 'code', MODS)
assert 'code' not in chosen and 'utility' not in chosen # what needs it goes with it
cli._toggle(chosen, 'extended_bpm', MODS)
assert 'extended_bpm' not in chosen and 'phasemeter' in chosen # each on its own
cli._toggle(chosen, 'cuecolours', MODS)
assert 'cuecolours' not in chosen and 'hotcuekeys' not in chosen
cli._toggle(chosen, 'hotcuekeys', MODS)
assert {'hotcuekeys', 'cuecolours'} <= chosen # and ticking brings what it needs
cli._toggle(chosen, 'overview', MODS)
assert 'overview' not in chosen
cli._toggle(chosen, 'rgb_waveform', MODS)
assert 'rgb_waveform' not in chosen
cli._toggle(chosen, 'cuecolours', MODS)
assert not {'cuecolours', 'hotcuekeys', 'beatjump'} & chosen # and what needs that
cli._toggle(chosen, 'beatjump', MODS)
@@ -133,9 +133,9 @@ def test_disclaimer_without_a_terminal(monkeypatch):
def test_credit_can_be_unticked():
import types
mods = cli.available(types.SimpleNamespace(MODS={"code": "c", "credit": "x"}), cli.DEFAULT_REPO)
assert [m[0] for m in mods] == ['code', 'credit']
mods = cli.available(types.SimpleNamespace(MODS={"extended_bpm": "c", "credit": "x"}), cli.DEFAULT_REPO)
assert [m[0] for m in mods] == ['extended_bpm', 'credit']
chosen = {m[0] for m in mods if m[0] not in cli.KNOWN_FAULTS}
assert 'credit' in chosen # ticked at the start
cli._toggle(chosen, 'credit', mods)
assert chosen == {'code'}
assert chosen == {'extended_bpm'}