Revision d6a92fa0 snf-common/synnefo/settings/test.py

b/snf-common/synnefo/settings/test.py
8 8

  
9 9
DATABASES = {
10 10
    'default': {
11
        #'ENGINE': 'django.db.backends.sqlite3',
12
        #'NAME': '/tmp/synnefo_test_db.sqlite',
13

  
14
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
15
        'NAME': 'pithos',
16
        'USER': 'postgres',
17
        'PORT': '5432',
11
        'ENGINE': 'django.db.backends.sqlite3',
12
        'NAME': '/tmp/synnefo_test_db.sqlite',
18 13
    }
19 14
}
20 15

  
......
25 20

  
26 21

  
27 22
SOUTH_TESTS_MIGRATE = bool(int(os.environ.get('SOUTH_TESTS_MIGRATE', True)))
23
SNF_TEST_USE_POSTGRES = bool(int(os.environ.get('SNF_TEST_USE_POSTGRES',
24
                                                False)))
25

  
26
# override default database
27
if SNF_TEST_USE_POSTGRES:
28
    DATABASES['default'] = {
29
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
30
        'NAME': 'pithos',
31
        'TEST_NAME': 'test_pithos',
32
        'USER': 'postgres',
33
        'PORT': '5432',
34
    }
28 35

  
29 36
ASTAKOS_IM_MODULES = ['local', 'shibboleth']
30 37

  

Also available in: Unified diff