mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-03-16 21:30:23 +00:00
Updates test conditions.
This commit is contained in:
parent
259b76291a
commit
5ca8a6bb9f
2 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
-r requirements.txt
|
||||
|
||||
psycopg2
|
||||
psycopg2-binary
|
||||
mysqlclient
|
||||
django-redis
|
||||
python-memcached
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in a new issue