File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ def test_on_leave(self) -> None:
295
295
296
296
def test_mouse_wheel_scroll_windows (self ) -> None :
297
297
"""Test mouse wheel scrolling on Windows."""
298
+ if platform_system () != "Windows" :
299
+ pytest .skip ("Test only applicable on Windows" )
298
300
with patch ("platform.system" , return_value = "Windows" ):
299
301
event = MagicMock ()
300
302
event .delta = 120
@@ -304,6 +306,8 @@ def test_mouse_wheel_scroll_windows(self) -> None:
304
306
305
307
def test_mouse_wheel_scroll_linux (self ) -> None :
306
308
"""Test mouse wheel scrolling on Linux."""
309
+ if platform_system () != "Linux" :
310
+ pytest .skip ("Test only applicable on Linux" )
307
311
with patch ("platform.system" , return_value = "Linux" ):
308
312
event = MagicMock ()
309
313
event .num = 4 # Scroll up
@@ -313,7 +317,7 @@ def test_mouse_wheel_scroll_linux(self) -> None:
313
317
314
318
with patch .object (self .scroll_frame .canvas , "yview_scroll" ) as mock_yview_scroll :
315
319
self .scroll_frame .on_mouse_wheel (event )
316
- mock_yview_scroll .assert_called_once_with (1 , "units" ) # Linux scroll direction is inverted
320
+ mock_yview_scroll .assert_called_once_with (- 1 , "units" ) # Linux scroll direction is inverted
317
321
318
322
319
323
class TestProgressWindow (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments