summaryrefslogtreecommitdiffstats
path: root/tests/cli_tests/test_pager.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli_tests/test_pager.py')
-rw-r--r--tests/cli_tests/test_pager.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/cli_tests/test_pager.py b/tests/cli_tests/test_pager.py
index 38ced31..5a285a8 100644
--- a/tests/cli_tests/test_pager.py
+++ b/tests/cli_tests/test_pager.py
@@ -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)