Skip to content

Commit 2085f8b

Browse files
author
Fabien Coelho
committed
more test fixes
1 parent af1d852 commit 2085f8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ def test_key_redis():
271271
c1 = ctu.PrefixedRedisCache(c0, "CacheToolsUtils.")
272272
run_cached(c1)
273273
assert len(c1) >= 50
274-
assert c1['[1,"a",true]'] == 111
275-
assert c1['[3,null,false]'] == -17
274+
assert c1["(1, 'a', True)"] == 111
275+
assert c1["(3, None, False)"] == -17
276276
setgetdel(c1)
277277
c1.set("Hello", "World!")
278278
assert c1["Hello"] == c1.get("Hello")
@@ -288,7 +288,7 @@ def test_stats_redis():
288288

289289
c0 = redis.Redis(host="localhost")
290290
c1 = ctu.StatsRedisCache(c0)
291-
run_cached(c1)
291+
run_cached(c1, key=ctu.json_key)
292292
assert len(c1) >= 50
293293
assert c1['[1,"a",true]'] == 111
294294
assert c1['[3,null,false]'] == -17

0 commit comments

Comments
 (0)