From 793fa3327bbae2b23b7d8ad209321621ba8c1adb Mon Sep 17 00:00:00 2001 From: Tim Heap Date: Wed, 9 Jul 2014 15:44:17 +1000 Subject: [PATCH] Pull all test database options from env variables Just pulling two and assuming others broke the base configuration I was using, which uses a different database name and has a password. --- runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 20b4512fae..0aff8c6d31 100755 --- a/runtests.py +++ b/runtests.py @@ -34,8 +34,9 @@ if not settings.configured: DATABASES={ 'default': { 'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.postgresql_psycopg2'), - 'NAME': 'wagtaildemo', + 'NAME': os.environ.get('DATABASE_NAME', 'wagtaildemo'), 'USER': os.environ.get('DATABASE_USER', 'postgres'), + 'PASSWORD': os.environ.get('DATABASE_PASS', None), } }, ROOT_URLCONF='wagtail.tests.urls',