aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patchwork/settings/dev.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index e110e74..c5afe0d 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -51,6 +51,13 @@ DATABASES = {
if os.getenv('PW_TEST_DB_TYPE', None) == 'postgres':
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
DATABASES['default']['HOST'] = os.getenv('PW_TEST_DB_HOST', '')
+elif os.getenv('PW_TEST_DB_TYPE', None) == 'sqlite':
+ DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'
+ DATABASES['default']['NAME'] = '/dev/shm/patchwork.test.db.sqlite3'
+ del DATABASES['default']['HOST']
+ del DATABASES['default']['PORT']
+ del DATABASES['default']['USER']
+ del DATABASES['default']['PASSWORD']
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'