Merging upstream version 1.13.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a0b9a3fd71
commit
c82b0872ca
16 changed files with 291 additions and 327 deletions
6
tests/cli_tests/test_command_restore.py
Normal file
6
tests/cli_tests/test_command_restore.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
def test_restore_command(clean_redis, cli):
|
||||
cli.sendline(r'restore foo1 0 "\x00\x03bar\t\x006L\x18\xac\xba\xe0\x9e\xa6"')
|
||||
cli.expect(["OK", "127.0.0.1"])
|
||||
|
||||
cli.sendline("get foo1")
|
||||
cli.expect('"bar"')
|
|
@ -54,13 +54,18 @@ def test_using_pager_works_for_help():
|
|||
child.expect(TEST_PAGER_BOUNDARY)
|
||||
|
||||
|
||||
long_list_type = "quicklist"
|
||||
if os.environ["REDIS_VERSION"] == "7":
|
||||
long_list_type = "listpack"
|
||||
|
||||
|
||||
def test_pager_works_for_peek(clean_redis):
|
||||
for index in range(100):
|
||||
clean_redis.lpush("long-list", f"value-{index}")
|
||||
with pager_enabled_cli() as child:
|
||||
child.sendline("peek long-list")
|
||||
child.expect(TEST_PAGER_BOUNDARY)
|
||||
child.expect("(quicklist)")
|
||||
child.expect(f"({long_list_type})")
|
||||
child.expect("value-1")
|
||||
child.expect(TEST_PAGER_BOUNDARY)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue