diff --git a/.env.example b/.env.example index 5d721c22..8aa3adea 100644 --- a/.env.example +++ b/.env.example @@ -10,6 +10,14 @@ DB_PASSWORD = DB_HOST = localhost DB_PORT = 5432 +# Test DB settings + +TEST_DB_NAME = systersdb +TEST_DB_USER = +TEST_DB_PASSWORD = +TEST_DB_HOST = localhost +TEST_DB_PORT = 5432 + # Email settings EMAIL_HOST = localhost diff --git a/systers_portal/systers_portal/settings/testing.py b/systers_portal/systers_portal/settings/testing.py index 361daef3..f21de47c 100644 --- a/systers_portal/systers_portal/settings/testing.py +++ b/systers_portal/systers_portal/settings/testing.py @@ -11,11 +11,11 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', - 'NAME': config('DB_NAME', default='systersdb'), - 'USER': config('DB_USER'), - 'PASSWORD': config('DB_PASSWORD'), - 'HOST': config('DB_HOST', default='localhost'), - 'PORT': config('DB_PORT', default=5432, cast=int), + 'NAME': config('TEST_DB_NAME', default='systersdb'), + 'USER': config('TEST_DB_USER'), + 'PASSWORD': config('TEST_DB_PASSWORD'), + 'HOST': config('TEST_DB_HOST', default='localhost'), + 'PORT': config('TEST_DB_PORT', default=5432, cast=int), } }