change test db
This commit is contained in:
parent
780869fa90
commit
31dba91102
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user