diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-20 09:32:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-20 09:32:05 +0000 |
commit | 8e34d9e75f42158fd0553a1583a38c64c373151c (patch) | |
tree | 97210524cb84512c477421e1950f2c6f7e1a3089 /tests/unittests | |
parent | Adding upstream version 1.14.0. (diff) | |
download | iredis-upstream/1.14.1.tar.xz iredis-upstream/1.14.1.zip |
Adding upstream version 1.14.1.upstream/1.14.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/unittests/test_entry.py | 13 | ||||
-rw-r--r-- | tests/unittests/test_utils.py | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/unittests/test_entry.py b/tests/unittests/test_entry.py index e53861e..99d6931 100644 --- a/tests/unittests/test_entry.py +++ b/tests/unittests/test_entry.py @@ -175,6 +175,19 @@ def test_command_shell_options_higher_priority(): ), ), ( + "redis://username:pass@word@localhost:12345/2", + DSN( + scheme="redis", + host="localhost", + port=12345, + path=None, + db=2, + username="username", + password="pass@word", + verify_ssl=None, + ), + ), + ( "redis://username@localhost:12345", DSN( scheme="redis", diff --git a/tests/unittests/test_utils.py b/tests/unittests/test_utils.py index 98ea8db..e00eaff 100644 --- a/tests/unittests/test_utils.py +++ b/tests/unittests/test_utils.py @@ -55,6 +55,7 @@ def test_timer(): (r'""', [""]), # set foo "" is a legal command (r"\\", ["\\\\"]), # backslash are legal ("\\hello\\", ["\\hello\\"]), # backslash are legal + ('foo "bar\\n1"', ["foo", "bar\n1"]), ], ) def test_stripe_quote_escape_in_quote(test_input, expected): |