Esempio n. 1
0
def test_check_cache_default_down(settings):
    """Check if the application can connect to the default cached and
    read/write some dummy data.

    """
    cache.caches = cache.CacheHandler()
    settings.CACHES = {
        "default": {
            "BACKEND": "django.core.cache.backends.dummy.DummyCache",
        }
    }
    assert not contrib.check_cache_default()
def test_check_cache_default_down(settings):
    """Check if the application can connect to the default cached and
    read/write some dummy data.

    """
    cache.caches = cache.CacheHandler()
    settings.CACHES={
        'default': {
            'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
        }
    }
    assert not contrib.check_cache_default()
Esempio n. 3
0
def test_check_cache_default():
    cache.caches = cache.CacheHandler()
    assert contrib.check_cache_default()
def test_check_cache_default():
    cache.caches = cache.CacheHandler()
    assert contrib.check_cache_default()