We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af1d852 commit 2085f8bCopy full SHA for 2085f8b
test.py
@@ -271,8 +271,8 @@ def test_key_redis():
271
c1 = ctu.PrefixedRedisCache(c0, "CacheToolsUtils.")
272
run_cached(c1)
273
assert len(c1) >= 50
274
- assert c1['[1,"a",true]'] == 111
275
- assert c1['[3,null,false]'] == -17
+ assert c1["(1, 'a', True)"] == 111
+ assert c1["(3, None, False)"] == -17
276
setgetdel(c1)
277
c1.set("Hello", "World!")
278
assert c1["Hello"] == c1.get("Hello")
@@ -288,7 +288,7 @@ def test_stats_redis():
288
289
c0 = redis.Redis(host="localhost")
290
c1 = ctu.StatsRedisCache(c0)
291
- run_cached(c1)
+ run_cached(c1, key=ctu.json_key)
292
293
assert c1['[1,"a",true]'] == 111
294
assert c1['[3,null,false]'] == -17
0 commit comments