Fix stuff, apply ruff rules.

This commit is contained in:
2026-04-11 20:55:30 -04:00
parent b38d10575e
commit 09c03ad06a
26 changed files with 1466 additions and 30 deletions
+6
View File
@@ -17,6 +17,12 @@ from cthulhu import learn_mode_presenter
class LearnModePresenterRegressionTests(unittest.TestCase):
def test_get_presenter_alias_matches_legacy_get_presenter(self):
self.assertIs(learn_mode_presenter.get_presenter, learn_mode_presenter.getPresenter)
def test_exposes_default_extension_setup_hook(self):
self.assertTrue(hasattr(learn_mode_presenter.LearnModePresenter, "set_up_commands"))
def test_escape_keyval_exits_learn_mode_when_event_string_is_control_character(self):
presenter = learn_mode_presenter.LearnModePresenter(mock.Mock())
presenter._is_active = True