Skip to content

Commit 11e03eb

Browse files
committed
Fix: RedisMock, missing close() method
1 parent c936bea commit 11e03eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yhttp/dev/fixtures.py

+4
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,9 @@ def hget(self, key, field, value):
129129
hashtable = self.maindict.setdefault(key, {})
130130
return hashtable[field]
131131

132+
def close(self):
133+
# Do nothing here, this methog is needed for just compatibiliy.
134+
pass
135+
132136
with patch('redis.Redis', new=RedisMock) as p:
133137
yield p

0 commit comments

Comments
 (0)