Merging upstream version 1.14.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
455e66126a
commit
cd1500a24a
19 changed files with 152 additions and 114 deletions
|
@ -1,10 +1,12 @@
|
|||
# noqa: F541
|
||||
import os
|
||||
import sys
|
||||
import pexpect
|
||||
import pathlib
|
||||
from contextlib import contextmanager
|
||||
import os
|
||||
import pathlib
|
||||
import sys
|
||||
from textwrap import dedent
|
||||
from packaging.version import parse as version_parse
|
||||
|
||||
import pexpect
|
||||
|
||||
|
||||
TEST_IREDISRC = "/tmp/.iredisrc.test"
|
||||
|
@ -22,6 +24,10 @@ env_pager_numbers = "{0} {1} {2}".format(
|
|||
TEST_PAGER_BOUNDARY_NUMBER,
|
||||
)
|
||||
|
||||
long_list_type = "quicklist"
|
||||
if version_parse(os.environ["REDIS_VERSION"]) >= version_parse("7"):
|
||||
long_list_type = "listpack"
|
||||
|
||||
|
||||
@contextmanager
|
||||
def pager_enabled_cli():
|
||||
|
@ -54,11 +60,6 @@ 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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue