Skip to content

Commit 9c36fc8

Browse files
committed
fix test
1 parent ad26e31 commit 9c36fc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/functional/idempotency/persistence/test_redis_layer.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_remaining_time_in_millis(self) -> int:
3232

3333

3434
class MockRedis:
35-
def __init__(self, decode_responses, cache, **kwargs):
35+
def __init__(self, decode_responses, cache: dict = None, **kwargs):
3636
self.cache = cache or {}
3737
self.expire_dict = {}
3838
self.decode_responses = decode_responses
@@ -43,6 +43,9 @@ def hset(self, name, mapping):
4343
self.expire_dict.pop(name, {})
4444
self.cache[name] = mapping
4545

46+
def from_url(self, url: str):
47+
pass
48+
4649
# not covered by test yet.
4750
def expire(self, name, time):
4851
self.expire_dict[name] = t.time() + time

0 commit comments

Comments
 (0)