File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,18 +71,18 @@ def releaseMouse(self):
7171
7272
7373class CaptureGrabTests (unittest .TestCase ):
74- def test_start_recording_grabs_mouse_and_keyboard (self ):
74+ def test_start_recording_grabs_keyboard_without_mouse (self ):
7575 edit = _SpyCapture ()
7676 edit .start_recording ()
7777 self .assertIn ("grab_kb" , edit .events )
78- self .assertIn ("grab_mouse" , edit .events )
78+ self .assertNotIn ("grab_mouse" , edit .events )
7979
80- def test_stop_recording_releases_mouse_and_keyboard (self ):
80+ def test_stop_recording_releases_keyboard_without_mouse (self ):
8181 edit = _SpyCapture ()
8282 edit .start_recording ()
8383 edit .stop_recording ()
84- self .assertIn ("rel_mouse" , edit .events )
8584 self .assertIn ("rel_kb" , edit .events )
85+ self .assertNotIn ("rel_mouse" , edit .events )
8686
8787 def test_side_button_press_emits_hotkey (self ):
8888 edit = _SpyCapture ()
You can’t perform that action at this time.
0 commit comments