File: db_worker_test_settings.py

package info (click to toggle)
python-django-tasks-db 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 344 kB
  • sloc: python: 2,227; sh: 5; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from .settings import *

TASKS = {"default": {"BACKEND": "django_tasks_db.DatabaseBackend"}}

# Force the test DB to be used
if "sqlite" in DATABASES["default"]["ENGINE"]:
    DATABASES["default"]["NAME"] = DATABASES["default"]["TEST"]["NAME"]
else:
    DATABASES["default"]["NAME"] = "test_" + DATABASES["default"]["NAME"]