From 45ae52e5d0d42df2b4576bbe768315fa00fb2103 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Feb 2022 18:07:54 +0530 Subject: [PATCH] Fix assert ordering --- kitty_tests/shell_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index 5d004bb8b..c03702733 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -57,10 +57,10 @@ class ShellIntegration(BaseTest): PS1="{ps1}" RPS1="{rps1}" ''') as pty: - self.ae(pty.callbacks.titlebuf, '~') q = ps1 + ' ' * (pty.screen.columns - len(ps1) - len(rps1)) + rps1 - self.ae(pty.screen_contents(), q) pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BEAM) + self.ae(pty.screen_contents(), q) + self.ae(pty.callbacks.titlebuf, '~') pty.send_cmd_to_child('mkdir test && ls -a') pty.wait_till(lambda: pty.screen_contents().count('left>') == 2) self.ae(pty.last_cmd_output(), str(pty.screen.line(1)))