Commits

Gustavo Picon committed 677c12e

shorter name for postgres tests in jenkins

Comments (0)

Files changed (2)

treebeard/tests/jenkins/toxhelper.py

 def run_the_tests():
     if 'TOX_DB' in os.environ:
         os.environ['DATABASE_HOST'], os.environ['DATABASE_PORT'] = {
-            'postgres': ('dummy_test_database_server', '5434'),
+            'pgsql': ('dummy_test_database_server', '5434'),
             'mysql': ('dummy_test_database_server', '3308'),
             'sqlite': ('', ''),
         }[os.environ['TOX_DB']]

treebeard/tests/settings.py

     engine = conf['ENGINE']
     if engine == '':
         engine = 'sqlite3'
-    elif engine in ('postgres', 'postgresql', 'psycopg2'):
+    elif engine in ('pgsql', 'postgres', 'postgresql', 'psycopg2'):
         engine = 'postgresql_psycopg2'
     if '.' not in engine:
         engine = 'django.db.backends.' + engine