Patcher: ledsaver and credit mods, beat jump needs the hot cue engine

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:29:42 +02:00
1 parent bbe784aad2
commit 7dbb4ec6f8
3 files changed
+68 -14

No files matched your search

+14
View File
@@ -109,6 +109,10 @@ def test_every_mod_can_be_unticked():
assert {'hotcuekeys', 'cuecolours'} <= chosen # and ticking brings what it needs
cli._toggle(chosen, 'overview', MODS)
assert 'overview' not in chosen
cli._toggle(chosen, 'cuecolours', MODS)
assert not {'cuecolours', 'hotcuekeys', 'beatjump'} & chosen # and what needs that
cli._toggle(chosen, 'beatjump', MODS)
assert {'beatjump', 'hotcuekeys', 'cuecolours'} <= chosen
def test_disclaimer_must_be_accepted(monkeypatch):
@@ -125,3 +129,13 @@ def test_disclaimer_without_a_terminal(monkeypatch):
monkeypatch.setattr(cli.sys.stdin, 'isatty', lambda: False, raising=False)
with pytest.raises(SystemExit, match='--accept'):
cli.confirm(False)
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']
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'}