change test db
This commit is contained in:
parent
780869fa90
commit
31dba91102
@ -45,8 +45,6 @@ INSTALLED_APPS = (
|
|||||||
'tracking',
|
'tracking',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
@ -88,16 +86,11 @@ DATABASES = {
|
|||||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
'NAME': 'bikemap_gis',
|
'NAME': 'bikemap_gis',
|
||||||
'USER': 'tsouza'
|
'USER': 'tsouza'
|
||||||
},
|
|
||||||
'test': {
|
|
||||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
|
||||||
'NAME': 'bikemap_gis',
|
|
||||||
'USER': 'jenkins',
|
|
||||||
'PASS': 'jenkins'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/1.8/topics/i18n/
|
# https://docs.djangoproject.com/en/1.8/topics/i18n/
|
||||||
|
|
||||||
@ -118,3 +111,14 @@ USE_TZ = True
|
|||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
|
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