(text, suggestion, expected)
| 195 | ], |
| 196 | ) |
| 197 | def test_accept_word(text, suggestion, expected): |
| 198 | event = make_event(text, len(text), suggestion) |
| 199 | event.current_buffer.insert_text = Mock() |
| 200 | accept_word(event) |
| 201 | assert event.current_buffer.insert_text.called |
| 202 | assert event.current_buffer.insert_text.call_args[0] == (expected,) |
| 203 | |
| 204 | |
| 205 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…