From 5ca8a6bb9ff1a5b71d44defb8312133ef4247e40 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Fri, 4 May 2018 16:19:57 +0200 Subject: [PATCH] Updates test conditions. --- runtests_requirements.txt | 2 +- settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtests_requirements.txt b/runtests_requirements.txt index 4454cdc..9723fef 100644 --- a/runtests_requirements.txt +++ b/runtests_requirements.txt @@ -1,6 +1,6 @@ -r requirements.txt -psycopg2 +psycopg2-binary mysqlclient django-redis python-memcached diff --git a/settings.py b/settings.py index cc42eec..c9bd6bd 100644 --- a/settings.py +++ b/settings.py @@ -20,6 +20,8 @@ DATABASES = { 'USER': 'root', }, } +if 'MYSQL_PASSWORD' in os.environ: + DATABASES['mysql']['PASSWORD'] = os.environ['MYSQL_PASSWORD'] for alias in DATABASES: if 'TEST' not in DATABASES[alias]: test_db_name = 'test_' + DATABASES[alias]['NAME']