summaryrefslogtreecommitdiff
path: root/tests/test_scripting.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-02-22 13:11:55 +0200
committerGitHub <noreply@github.com>2022-02-22 13:11:55 +0200
commitfa76ac49a9ea02c204bd4f1644f39d90140cf356 (patch)
tree0578d5e4748c64824a1f72ed3b64f23c8f57368b /tests/test_scripting.py
parentf2e34739fccab28a28a066a3ece955eb455b32f9 (diff)
downloadredis-py-fa76ac49a9ea02c204bd4f1644f39d90140cf356.tar.gz
Add support for Redis 7 functions (#1998)
* add function support * linters * test fcall * decode reponses for unstable_r * linters * fix evalsho_ro test * fix eval_ro test * add response callbaks * linters
Diffstat (limited to 'tests/test_scripting.py')
-rw-r--r--tests/test_scripting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_scripting.py b/tests/test_scripting.py
index f4671a5..dcf8a78 100644
--- a/tests/test_scripting.py
+++ b/tests/test_scripting.py
@@ -35,7 +35,7 @@ class TestScripting:
# @skip_if_server_version_lt("7.0.0") turn on after redis 7 release
def test_eval_ro(self, unstable_r):
unstable_r.set("a", "b")
- assert unstable_r.eval_ro("return redis.call('GET', KEYS[1])", 1, "a") == b"b"
+ assert unstable_r.eval_ro("return redis.call('GET', KEYS[1])", 1, "a") == "b"
with pytest.raises(redis.ResponseError):
unstable_r.eval_ro("return redis.call('DEL', KEYS[1])", 1, "a")
@@ -79,7 +79,7 @@ class TestScripting:
unstable_r.set("a", "b")
get_sha = unstable_r.script_load("return redis.call('GET', KEYS[1])")
del_sha = unstable_r.script_load("return redis.call('DEL', KEYS[1])")
- assert unstable_r.evalsha_ro(get_sha, 1, "a") == b"b"
+ assert unstable_r.evalsha_ro(get_sha, 1, "a") == "b"
with pytest.raises(redis.ResponseError):
unstable_r.evalsha_ro(del_sha, 1, "a")