示例#1
0
 def test_paren_right_not_paren_current(self):
   mock_event = MagicMock()
   mock_event.cli.current_buffer.document.current_char = "n"
   paren_right(mock_event)
   mock_event.cli.current_buffer.insert_text.assert_has_calls([call(")")])
示例#2
0
def test_paren_right_not_paren_current(binder):
    binder.cli.current_buffer.document.current_char = "n"
    paren_right(binder)
    binder.cli.current_buffer.insert_text.assert_has_calls([call(")")])
示例#3
0
 def test_paren_right_paren_current(self):
   mock_event = MagicMock()
   mock_event.cli.current_buffer.document.current_char = ")"
   paren_right(mock_event)
   mock_event.cli.current_buffer.cursor_right.assert_called_once_with()
示例#4
0
def test_paren_right_paren_current(binder):
    binder.cli.current_buffer.document.current_char = ")"
    paren_right(binder)
    binder.cli.current_buffer.cursor_right.assert_called_once_with()