Revision 0534576c snf-common/synnefo/settings/test.py
b/snf-common/synnefo/settings/test.py | ||
---|---|---|
32 | 32 |
if SNF_TEST_USE_POSTGRES: |
33 | 33 |
DATABASES['default'] = { |
34 | 34 |
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
35 |
'NAME': 'pithos',
|
|
36 |
'TEST_NAME': 'test_pithos',
|
|
35 |
'NAME': 'synnefo_db',
|
|
36 |
'TEST_NAME': 'test_synnefo_db',
|
|
37 | 37 |
'USER': 'postgres', |
38 | 38 |
'PORT': '5432', |
39 | 39 |
} |
40 |
PITHOS_BACKEND_DB_CONNECTION = 'postgresql://postgres@:5432/test_pithos' |
|
40 |
PITHOS_BACKEND_DB_CONNECTION = ( |
|
41 |
'postgresql://%(USER)s@:%(PORT)s/%(TEST_NAME)s' % DATABASES['default']) |
|
41 | 42 |
elif SNF_TEST_PITHOS_SQLITE_MODULE: |
42 |
BACKEND_DB_MODULE = 'pithos.backends.lib.sqlite' |
|
43 |
PITHOS_BACKEND_POOL_ENABLED = False |
|
44 |
PITHOS_BACKEND_DB_MODULE = 'pithos.backends.lib.sqlite' |
|
43 | 45 |
PITHOS_BACKEND_DB_CONNECTION = DATABASES['default']['NAME'] |
44 | 46 |
|
45 | 47 |
if SNF_TEST_PITHOS_UPDATE_MD5: |
Also available in: Unified diff