Skip to content

Commit

Permalink
fix wrong test group name
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed Jun 4, 2020
1 parent f541216 commit 3935876
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -192,7 +192,7 @@ def test_04_execute_use_stdin(ssh, mocker, chan_makefile) -> None:
conn = mocker.patch("paramiko.SSHClient")
conn().get_transport().open_session().makefile = chan_makefile
target = "127.0.0.2"
cmd = 'read line; echo "$line"'
cmd = print_stdin
stdin = "test"
res = ssh.execute_through_host(target, cmd, stdin=stdin, get_pty=True)
assert res.stdin == stdin
Expand All @@ -202,7 +202,7 @@ def test_04_execute_use_stdin(ssh, mocker, chan_makefile) -> None:

def test_05_execute_closed_stdin(ssh, ssh_transport_channel, get_logger) -> None:
target = "127.0.0.2"
cmd = 'read line; echo "$line"'
cmd = print_stdin
stdin = "test"
ssh_transport_channel.closed = True

Expand Down

0 comments on commit 3935876

Please sign in to comment.