Added comment into runtests.py to explain why we're using DatabaseCache

pull/225/head
Karl Hobley 2014-05-02 12:33:20 +01:00
rodzic 360174e230
commit 503f1cbaf8
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -82,6 +82,10 @@ if not settings.configured:
'wagtail.wagtailredirects',
'wagtail.tests',
],
# Using DatabaseCache to make sure that the cache is cleared between tests.
# This prevents false-positives in some wagtail core tests where we are
# changing the 'wagtail_root_paths' key which may cause future tests to fail.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',