refactor: Update exception handling parameters in context managers for consistency
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user