summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_shell_pipeline.py
blob: 4bacf8da75a1f0e5494424fbad1bb1306131df55 (plain)
1
2
3
4
5
6
7
8
9
10
11
import pexpect


def test_running_disable_shell_pipeline():
    cli = pexpect.spawn("iredis -n 15 --no-shell", timeout=2)
    cli.expect("127.0.0.1")
    cli.sendline("set foo hello")
    cli.expect("OK")
    cli.sendline("get foo | grep w")
    cli.expect(r"hello")
    cli.close()