Fix assert ordering
This commit is contained in:
parent
a565443d4a
commit
45ae52e5d0
@ -57,10 +57,10 @@ class ShellIntegration(BaseTest):
|
|||||||
PS1="{ps1}"
|
PS1="{ps1}"
|
||||||
RPS1="{rps1}"
|
RPS1="{rps1}"
|
||||||
''') as pty:
|
''') as pty:
|
||||||
self.ae(pty.callbacks.titlebuf, '~')
|
|
||||||
q = ps1 + ' ' * (pty.screen.columns - len(ps1) - len(rps1)) + rps1
|
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)
|
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.send_cmd_to_child('mkdir test && ls -a')
|
||||||
pty.wait_till(lambda: pty.screen_contents().count('left>') == 2)
|
pty.wait_till(lambda: pty.screen_contents().count('left>') == 2)
|
||||||
self.ae(pty.last_cmd_output(), str(pty.screen.line(1)))
|
self.ae(pty.last_cmd_output(), str(pty.screen.line(1)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user