mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-02 13:23:05 +01:00
test(cli): improve resized banner assertion
This commit is contained in:
1 parent
94b961d129
commit
e5e07b4aed
1 file changed
+1
-1
@@ -135,7 +135,7 @@ class AquariumTests(unittest.TestCase):
|
|||||||
boundary = len(terminal.output)
|
boundary = len(terminal.output)
|
||||||
terminal.resize(40, 140)
|
terminal.resize(40, 140)
|
||||||
terminal.collect(0.7)
|
terminal.collect(0.7)
|
||||||
self.assertTrue(b"O H M Y Z S H" in terminal.output[boundary:])
|
self.assertIn(b"O H M Y Z S H", terminal.output[boundary:])
|
||||||
os.write(terminal.master, b"q")
|
os.write(terminal.master, b"q")
|
||||||
self.assertEqual(terminal.finish(), 0)
|
self.assertEqual(terminal.finish(), 0)
|
||||||
self.assert_restored(terminal)
|
self.assert_restored(terminal)
|
||||||
|
|||||||
Reference in new issue
Block a user