added key "?" for help

This commit is contained in:
Vaclav Tvrdik
2026-09-24 13:24:04 +02:00
parent 8c174bc131
commit 07f0503cef
12 changed files with 280 additions and 59 deletions

View File

@@ -124,3 +124,14 @@ def test_run_async_reports_git_error(monkeypatch):
commands.run_async(boom, lambda r: messages.append("done"))
assert messages == ["vDiff: fatal: bad revision 'nope'"]
def test_run_async_reports_generic_error(monkeypatch):
messages = []
monkeypatch.setattr(commands.sublime, "status_message", lambda m: messages.append(m))
def boom():
raise ValueError("boom")
commands.run_async(boom, lambda r: messages.append("done"))
assert messages == ["vDiff: boom"]