moo.shell.tests.test_editor
Functions
Extra positional args to open_editor() appear in the editor event dict. |
|
open_editor() raises UserError for an unrecognised content_type. |
|
|
open_editor() raises UserError when the caller is not a wizard. |
Invoking a verb that calls open_editor() publishes an editor event dict to the player's Kombu queue (emitted as a RuntimeWarning in tests). |
|
|
content_type='python' is passed through to the editor event dict. |
Ctrl+C then Y cancels without saving and returns None. |
|
Ctrl+S then N resets confirming state; subsequent Ctrl+C then Y cancels. |
|
get_status_text returns the correct prompt for each confirming state. |
|
run_editor returns None when no key is pressed (application exits without saving). |
|
content_type='python' triggers the lexer lookup branch without error. |
|
Ctrl+S then Y saves the buffer and returns the initial text. |