##// END OF EJS Templates
Add test for no matching shortcut for modification
krassowski -
Show More
@@ -420,6 +420,17 b' def test_add_shortcut_for_new_command(ipython_with_prompt):'
420 assert len(matched) == 0
420 assert len(matched) == 0
421
421
422
422
423 def test_modify_shortcut_failure(ipython_with_prompt):
424 with pytest.raises(ValueError, match="No shortcuts matching"):
425 ipython_with_prompt.shortcuts = [
426 {
427 "command": "IPython:auto_match.skip_over",
428 "match_keys": ["x"],
429 "new_keys": ["y"],
430 }
431 ]
432
433
423 def test_add_shortcut_for_existing_command(ipython_with_prompt):
434 def test_add_shortcut_for_existing_command(ipython_with_prompt):
424 matched = find_bindings_by_command(skip_over)
435 matched = find_bindings_by_command(skip_over)
425 assert len(matched) == 5
436 assert len(matched) == 5
General Comments 0
You need to be logged in to leave comments. Login now