Ticket #16162: dummy-timeout.2.diff

File dummy-timeout.2.diff, 1019 bytes (added by aaugustin, 4 years ago)
  • tests/regressiontests/cache/tests.py

     
    140140    def test_set_many(self):
    141141        "set_many does nothing for the dummy cache backend"
    142142        self.cache.set_many({'a': 1, 'b': 2})
     143        self.cache.set_many({'a': 1, 'b': 2}, timeout=2, version='1')
    143144
    144145    def test_delete_many(self):
    145146        "delete_many does nothing for the dummy cache backend"
  • django/core/cache/backends/dummy.py

     
    3232        self.validate_key(key)
    3333        return False
    3434
    35     def set_many(self, data, version=None):
     35    def set_many(self, data, timeout=None, version=None):
    3636        pass
    3737
    3838    def delete_many(self, keys, version=None):
Back to Top