change test db

This commit is contained in:
Tyrel Souza 2015-09-08 13:25:41 -05:00
parent 780869fa90
commit 31dba91102

View File

@ -45,8 +45,6 @@ INSTALLED_APPS = (
'tracking',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
@ -85,19 +83,14 @@ WSGI_APPLICATION = 'bikemap.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'bikemap_gis',
'USER': 'tsouza'
},
'test': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'bikemap_gis',
'USER': 'jenkins',
'PASS': 'jenkins'
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'bikemap_gis',
'USER': 'tsouza'
}
}
# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/
@ -118,3 +111,14 @@ USE_TZ = True
STATIC_URL = '/static/'
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
import sys
if 'test' in sys.argv:
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'bikemap_gis',
'USER': 'jenkins',
'PASS': 'jenkins'
}
}