From 33d1174cba485e0e0e382cacb1c91046f3818044 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 24 Oct 2025 20:16:11 +0200 Subject: [PATCH] In tests, automatically call quit steps once end of script reached. --- src/ircplom/testing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircplom/testing.py b/src/ircplom/testing.py index 62ff9aa..e6dc6cd 100644 --- a/src/ircplom/testing.py +++ b/src/ircplom/testing.py @@ -353,6 +353,8 @@ class _Playbook: def _play_till_test(self) -> None: while True: + if self._idx >= len(self._lines_t): + self._lines_t += [('', '> /quit'), ('', 'log 0 <..')] idx_info, line = self._current_line cmd_name, args = self._cmdname_and_args_from(line) if self._verbose: -- 2.30.2