| 1 |
# ensure package/conf is importable |
| 2 |
from django_filters.conf import DEFAULTS |
| 3 |
|
| 4 |
DATABASES = { |
| 5 |
"default": { |
| 6 |
"ENGINE": "django.db.backends.sqlite3", |
| 7 |
"NAME": ":memory:", |
| 8 |
}, |
| 9 |
} |
| 10 |
|
| 11 |
INSTALLED_APPS = ( |
| 12 |
"django.contrib.contenttypes", |
| 13 |
"django.contrib.staticfiles", |
| 14 |
"django.contrib.auth", |
| 15 |
"rest_framework", |
| 16 |
"django_filters", |
| 17 |
"tests.rest_framework", |
| 18 |
"tests", |
| 19 |
) |
| 20 |
|
| 21 |
MIDDLEWARE = [] |
| 22 |
|
| 23 |
ROOT_URLCONF = "tests.urls" |
| 24 |
|
| 25 |
USE_TZ = True |
| 26 |
|
| 27 |
TIME_ZONE = "UTC" |
| 28 |
|
| 29 |
SECRET_KEY = "foobar" |
| 30 |
|
| 31 |
TEMPLATES = [ |
| 32 |
{ |
| 33 |
"BACKEND": "django.template.backends.django.DjangoTemplates", |
| 34 |
"APP_DIRS": True, |
| 35 |
} |
| 36 |
] |
| 37 |
|
| 38 |
|
| 39 |
STATIC_URL = "/static/" |
| 40 |
|
| 41 |
|
| 42 |
# XMLTestRunner output |
| 43 |
TEST_OUTPUT_DIR = ".xmlcoverage" |
| 44 |
|
| 45 |
|
| 46 |
# help verify that DEFAULTS is importable from conf. |
| 47 |
def FILTERS_VERBOSE_LOOKUPS(): |
| 48 |
return DEFAULTS["VERBOSE_LOOKUPS"] |
| 49 |
|
| 50 |
|
| 51 |
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" |