test that autosuggest is only applied at end of line.
(text, cursor, suggestion, called)
| 115 | ], |
| 116 | ) |
| 117 | def test_autosuggest_at_EOL(text, cursor, suggestion, called): |
| 118 | """ |
| 119 | test that autosuggest is only applied at end of line. |
| 120 | """ |
| 121 | |
| 122 | event = make_event(text, cursor, suggestion) |
| 123 | event.current_buffer.insert_text = Mock() |
| 124 | accept_or_jump_to_end(event) |
| 125 | if called: |
| 126 | event.current_buffer.insert_text.assert_called() |
| 127 | else: |
| 128 | event.current_buffer.insert_text.assert_not_called() |
| 129 | # event.current_buffer.document.get_end_of_line_position.assert_called() |
| 130 | |
| 131 | |
| 132 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…