Skip to content

Commit

Permalink
add test case for password containing @ symbol (#488)
Browse files Browse the repository at this point in the history
* add test case for password containing `@` symbol

#487

* black format

* fix black

* bugfix: black using 2.24
  • Loading branch information
laixintao committed Feb 16, 2024
1 parent 40c828e commit 30845af
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 59 deletions.
1 change: 1 addition & 0 deletions iredis/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
IRedis client.
"""

import re
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions iredis/renders.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
func(redis-response) -> formatted result(str)
"""

import logging
import time
from packaging.version import parse as version_parse
Expand Down
62 changes: 3 additions & 59 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/unittests/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@ def test_command_shell_options_higher_priority():
verify_ssl=None,
),
),
(
"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(
Expand Down

0 comments on commit 30845af

Please sign in to comment.