refactor: Update exception handling parameters in context managers for consistency

This commit is contained in:
William Valentin
2025-08-08 17:44:50 -07:00
parent 9e107f6125
commit 87b59cd64a
6 changed files with 14 additions and 8 deletions

View File

@@ -11,9 +11,15 @@ def root_window():
@pytest.fixture
def ui_manager(root_window):
class DummyLogger:
def debug(self, *a, **k): pass
def warning(self, *a, **k): pass
def error(self, *a, **k): pass
def debug(self, *_args, **_kwargs):
pass
def warning(self, *_args, **_kwargs):
pass
def error(self, *_args, **_kwargs):
pass
return UIManager(root_window, DummyLogger())
def test_parse_dose_history_for_saving_bullet_and_delete(ui_manager):