Add docs for metrics and FakeRedis.pipeline

This commit is contained in:
Raphael Michel
2017-03-27 23:07:33 +02:00
parent a4ead5bd07
commit 8dacbe0fc6
2 changed files with 33 additions and 0 deletions

View File

@@ -27,6 +27,12 @@ class FakeRedis(object):
# bytes-conversion here for emulating redis behavior without making incr too hard
return bytes(self.storage[rkey], encoding='utf-8')
def pipeline(self):
return self
def execute(self):
pass
@override_settings(HAS_REDIS=True)
def test_counter(monkeypatch):