moo.shell.tests.test_session_commands.test_repl_setup_signals_startup_drain_complete

moo.shell.tests.test_session_commands.test_repl_setup_signals_startup_drain_complete()

_repl_setup must open the session buffer, fire confunc, and signal process_messages that startup has finished.

The drain is deliberately deferred to process_messages so it runs via run_in_terminal after the prompt Application is live — draining directly to the SSH channel from _repl_setup would be wiped by the Application’s initial erase-in-display.