mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 01:03:11 +00:00
Add test configuration for image backends
This commit is contained in:
parent
db65b22d5a
commit
1fe4f08866
1 changed files with 12 additions and 0 deletions
12
runtests.py
12
runtests.py
|
|
@ -18,6 +18,17 @@ if not settings.configured:
|
|||
except ImportError:
|
||||
has_elasticsearch = False
|
||||
|
||||
WAGTAILIMAGES_BACKENDS = {
|
||||
'default': {
|
||||
'BACKEND': 'wagtail.wagtailimages.backends.pillow_backend.PillowBackend',
|
||||
},
|
||||
'pillow': {
|
||||
'BACKEND': 'wagtail.wagtailimages.backends.pillow_backend.PillowBackend',
|
||||
},
|
||||
'wand': {
|
||||
'BACKEND': 'wagtail.wagtailimages.backends.wand_backend.WandBackend',
|
||||
},
|
||||
}
|
||||
WAGTAILSEARCH_BACKENDS = {
|
||||
'default': {
|
||||
'BACKEND': 'wagtail.wagtailsearch.backends.db.DBSearch',
|
||||
|
|
@ -86,6 +97,7 @@ if not settings.configured:
|
|||
'django.contrib.auth.hashers.MD5PasswordHasher', # don't use the intentionally slow default password hasher
|
||||
),
|
||||
WAGTAILSEARCH_BACKENDS=WAGTAILSEARCH_BACKENDS,
|
||||
WAGTAILIMAGE_BACKENDS=WAGTAILIMAGE_BACKENDS,
|
||||
WAGTAIL_SITE_NAME='Test Site'
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue