diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-20 09:32:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-20 09:32:29 +0000 |
commit | 014c400849f01582f958e1a729ce239ffd7b2268 (patch) | |
tree | e30eac025e81b68a50ad7d167270bda28ee3ce21 /tests/cli_tests | |
parent | Releasing debian version 1.14.0-1. (diff) | |
download | iredis-014c400849f01582f958e1a729ce239ffd7b2268.tar.xz iredis-014c400849f01582f958e1a729ce239ffd7b2268.zip |
Merging upstream version 1.14.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/cli_tests')
-rw-r--r-- | tests/cli_tests/test_config.py | 2 | ||||
-rw-r--r-- | tests/cli_tests/test_history.py | 4 | ||||
-rw-r--r-- | tests/cli_tests/test_pager.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/cli_tests/test_config.py b/tests/cli_tests/test_config.py index 1795c62..eeaba33 100644 --- a/tests/cli_tests/test_config.py +++ b/tests/cli_tests/test_config.py @@ -19,7 +19,7 @@ def test_log_location_config(): log = Path("/tmp/iredis1.log") assert log.exists() - with open(log, "r") as logfile: + with open(log) as logfile: content = logfile.read() assert len(content) > 100 diff --git a/tests/cli_tests/test_history.py b/tests/cli_tests/test_history.py index 09e6c82..acb25d3 100644 --- a/tests/cli_tests/test_history.py +++ b/tests/cli_tests/test_history.py @@ -10,7 +10,7 @@ def test_history_not_log_auth(cli): cli.sendline("set foo bar") cli.expect("OK") - with open(os.path.expanduser("~/.iredis_history"), "r") as history_file: + with open(os.path.expanduser("~/.iredis_history")) as history_file: content = history_file.read() assert "set foo bar" in content @@ -36,7 +36,7 @@ def test_history_create_and_writing_with_config(): log = Path("/tmp/iredis_history.txt") assert log.exists() - with open(log, "r") as logfile: + with open(log) as logfile: content = logfile.read() assert "set hello world" in content diff --git a/tests/cli_tests/test_pager.py b/tests/cli_tests/test_pager.py index c3f9fb0..e8106a4 100644 --- a/tests/cli_tests/test_pager.py +++ b/tests/cli_tests/test_pager.py @@ -13,12 +13,12 @@ TEST_IREDISRC = "/tmp/.iredisrc.test" TEST_PAGER_BOUNDARY = "---boundary---" TEST_PAGER_BOUNDARY_NUMBER = "---88938347271---" -env_pager = "{0} {1} {2}".format( +env_pager = "{} {} {}".format( sys.executable, os.path.join(pathlib.Path(__file__).parent, "wrappager.py"), TEST_PAGER_BOUNDARY, ) -env_pager_numbers = "{0} {1} {2}".format( +env_pager_numbers = "{} {} {}".format( sys.executable, os.path.join(pathlib.Path(__file__).parent, "wrappager.py"), TEST_PAGER_BOUNDARY_NUMBER, |