(text, suggestion, expected)
| 176 | ], |
| 177 | ) |
| 178 | def test_accept_character(text, suggestion, expected): |
| 179 | event = make_event(text, len(text), suggestion) |
| 180 | event.current_buffer.insert_text = Mock() |
| 181 | accept_character(event) |
| 182 | assert event.current_buffer.insert_text.called |
| 183 | assert event.current_buffer.insert_text.call_args[0] == (expected,) |
| 184 | |
| 185 | |
| 186 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…