Hopefully make pty more similar to tested console behavior.

This commit is contained in:
Storm Dragon
2026-05-08 20:10:08 -04:00
parent 90efad362b
commit 114a7b0da7
3 changed files with 114 additions and 34 deletions
+10 -10
View File
@@ -88,8 +88,8 @@ class TestIncomingCommand:
[
"Status old",
"Users old",
"alice: hi",
"bob: hello",
"UserA: hi",
"UserB: hello",
"> ",
]
)
@@ -97,19 +97,19 @@ class TestIncomingCommand:
[
"Status new",
"Users new",
"bob: hello",
"carol: test",
"UserB: hello",
"UserC: test",
"> ",
]
)
env["screen"]["new_delta"] = "\n".join(
["Status new", "Users new", "carol: test"]
["Status new", "Users new", "UserC: test"]
)
command.run()
output_manager.present_text.assert_called_once_with(
"carol: test", interrupt=False, flush=False
"UserC: test", interrupt=False, flush=False
)
def test_keeps_header_update_when_no_lower_screen_insert_exists(
@@ -120,16 +120,16 @@ class TestIncomingCommand:
[
"Status old",
"Users old",
"alice: hi",
"bob: hello",
"UserA: hi",
"UserB: hello",
]
)
env["screen"]["new_content_text"] = "\n".join(
[
"Status new",
"Users new",
"alice: hi",
"bob: hello",
"UserA: hi",
"UserB: hello",
]
)
env["screen"]["new_delta"] = "\n".join(["Status new", "Users new"])