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

@@ -282,7 +282,7 @@ class TestUIManager:
assert medicine_data[0].get() == 0 # IntVar should be 0
@patch('tkinter.messagebox.showerror')
def test_error_handling_in_setup_application_icon(self, mock_showerror, ui_manager):
def test_error_handling_in_setup_application_icon(self, _mock_showerror, ui_manager):
"""Test error handling in setup_application_icon method."""
with patch('PIL.Image.open') as mock_open:
mock_open.side_effect = Exception("Image error")