diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2016-02-12 18:42:48 (GMT) |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2016-02-26 17:09:11 (GMT) |
commit | f2cf86f7a637173499316e212f408a91e8f50a43 (patch) | |
tree | 35cc22bcc26135b8d2c262a520b3ac421546ba08 /testsettings.py | |
parent | 3ca64e7eaf22d79446853fb42a0fbe5c4efe8150 (diff) | |
download | django-mellon-f2cf86f7a637173499316e212f408a91e8f50a43.zip django-mellon-f2cf86f7a637173499316e212f408a91e8f50a43.tar.gz django-mellon-f2cf86f7a637173499316e212f408a91e8f50a43.tar.bz2 |
add tox.ini to test on django 1.7, 1.8, 1.9 and with sqlite and pg
Diffstat (limited to 'testsettings.py')
-rw-r--r-- | testsettings.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsettings.py b/testsettings.py index 5f7bb5c..5f40084 100644 --- a/testsettings.py +++ b/testsettings.py @@ -1,11 +1,12 @@ +import os from django.conf import global_settings DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', + 'ENGINE': 'django.db.backends.' + os.environ.get('DB_ENGINE', 'sqlite3'), 'NAME': 'mellon.sqlite3', 'TEST': { - 'NAME': 'mellon-test.sqlite', + 'NAME': 'mellon-test-' + os.environ.get('DB_ENGINE', 'sqlite3'), }, } } @@ -13,3 +14,4 @@ DEBUG = True SECRET_KEY='xx' INSTALLED_APPS = ('mellon', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions') MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES +ROOT_URLCONF = 'mellon.urls' |