()
| 220 | |
| 221 | |
| 222 | def test_autosuggest_token_empty(): |
| 223 | full = "def out(tag: str, n=50):" |
| 224 | event = make_event(full, len(full), "") |
| 225 | event.current_buffer.insert_text = Mock() |
| 226 | |
| 227 | with patch( |
| 228 | "prompt_toolkit.key_binding.bindings.named_commands.forward_word" |
| 229 | ) as forward_word: |
| 230 | accept_token(event) |
| 231 | assert not event.current_buffer.insert_text.called |
| 232 | assert forward_word.called |
| 233 | |
| 234 | |
| 235 | def test_reset_search_buffer(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…