diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-01 13:09:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 13:09:03 +0300 |
commit | 3dc2bf906f634383d33952d36cd78156a6e36e0e (patch) | |
tree | eec571dd575a15fa17e0215ba8cef7fe4ede3e14 /tests | |
parent | 879584b7a359cfd7eeb008b41ba9ca9be16e6633 (diff) | |
download | redis-py-3dc2bf906f634383d33952d36cd78156a6e36e0e.tar.gz |
Adding support for GENPASS bits (#1558)
Part of #1546 commands.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index d77a01c..6877265 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -98,6 +98,14 @@ class TestRedisCommands: password = r.acl_genpass() assert isinstance(password, str) + with pytest.raises(exceptions.DataError): + r.acl_genpass('value') + r.acl_genpass(-5) + r.acl_genpass(5555) + + r.acl_genpass(555) + assert isinstance(password, str) + @skip_if_server_version_lt(REDIS_6_VERSION) def test_acl_getuser_setuser(self, r, request): username = 'redis-py-user' |