mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-28 11:23:03 +01:00
test(cli): clarify screensaver PTY assertions
This commit is contained in:
1 parent
aefaa0b966
commit
94b961d129
1 file changed
+2
-1
@@ -47,6 +47,7 @@ class Terminal:
|
||||
try:
|
||||
self.output.extend(os.read(self.master, 65536))
|
||||
except BlockingIOError:
|
||||
# The nonblocking PTY may have no bytes ready after select.
|
||||
pass
|
||||
return bytes(self.output)
|
||||
|
||||
@@ -130,7 +131,7 @@ class AquariumTests(unittest.TestCase):
|
||||
terminal = self.terminal()
|
||||
terminal.collect()
|
||||
terminal.resize(8, 25)
|
||||
self.assertTrue(b"A little more" in terminal.collect(0.7))
|
||||
self.assertIn(b"A little more", terminal.collect(0.7))
|
||||
boundary = len(terminal.output)
|
||||
terminal.resize(40, 140)
|
||||
terminal.collect(0.7)
|
||||
|
||||
Reference in new issue
Block a user