diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-10-26 14:24:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 14:24:54 +0300 |
commit | 396e7323959b7a79d72602afee3ef648dc23adf9 (patch) | |
tree | c50ad4bdfe0760b7334fde8fc027bb72ef444a72 /tests | |
parent | 866ac00b45a144753c40bb466e784a8917212172 (diff) | |
download | redis-py-396e7323959b7a79d72602afee3ef648dc23adf9.tar.gz |
Exposing the module version in loaded_modules (#1648)
This is useful for the case where one wants to instantiate a module, knowing the back end version. The reason: behaviour may differ based on redis module versions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py index 6728e0a..fa9a2b0 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -20,7 +20,7 @@ def test_invalid_response(r): @skip_if_server_version_lt('4.0.0') def test_loaded_modules(r, modclient): assert r.loaded_modules == [] - assert 'rejson' in modclient.loaded_modules + assert 'rejson' in modclient.loaded_modules.keys() @skip_if_server_version_lt('4.0.0') |