Commits

Mikhail Korobov committed 8baca02

add failing tox configuration (django 1.5 + Python 3.3 + PostgreSQL)

Comments (0)

Files changed (2)

django_webtest_tests/settings.py

     }
 }
 
+if os.environ.get('USE_POSTGRES'):
+    DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
+    DATABASES['default']['NAME'] = 'django_webtest_tests'
+
 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.
 [tox]
-envlist = py26,py27,pypy,dj12,dj13,dj14,dj15,dj15-py32,dj15-py33
+envlist = py26,py27,pypy,dj12,dj13,dj14,dj15,dj15-py32,dj15-py33,dj15-py33-postgres
 
 [testenv]
 deps=
     {[testenv:dj15]deps}
 basepython = python3.3
 
+
+
+; In order to run tests for this environment,
+; create a 'django_webtest_tests' PostgreSQL database.
+
+[testenv:dj15-py33-postgres]
+deps=
+    {[testenv:dj15]deps}
+    psycopg2
+basepython = python3.3
+
+setenv=
+    USE_POSTGRES=True