示例#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()
示例#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()