summaryrefslogtreecommitdiff
path: root/tests/integration/test_memory.py
blob: 2c4375d5dc9bc44a7bf2d8417fb36a67488c2688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from requests_cache.backends import BaseCache, DictStorage
from tests.integration.base_cache_test import BaseCacheTest
from tests.integration.base_storage_test import BaseStorageTest


class TestMemoryDict(BaseStorageTest):
    storage_class = DictStorage

    def init_cache(self, clear=True, **kwargs):
        cache = self.storage_class(**kwargs)
        if clear:
            cache.clear()
        return cache

    def test_same_settings(self):
        """This test from base class doesn't apply here"""


class TestMemoryCache(BaseCacheTest):
    backend_class = BaseCache