mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-01 12:04:47 +00:00
Use database cache for testing
Currently, the cache is not flushed between tests. This can cause false positives where a previous test has been messing with cache keys which a future test uses (eg, wagtail_root_paths) This commit makes django use the database as the cache which is automatically flushed between tests
This commit is contained in:
parent
cfcc67f514
commit
360174e230
1 changed files with 6 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ if not settings.configured:
|
|||
'wagtail.wagtailredirects',
|
||||
'wagtail.tests',
|
||||
],
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
|
||||
'LOCATION': 'cache',
|
||||
}
|
||||
},
|
||||
PASSWORD_HASHERS=(
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher', # don't use the intentionally slow default password hasher
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue