Hopefully make pty more similar to tested console behavior.
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user