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
|
@ -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