From 1c8d2f6d569486dfd0d6a503376107d553912af4 Mon Sep 17 00:00:00 2001 From: Mateusz Sikora Date: Fri, 2 May 2014 20:53:42 +0200 Subject: [PATCH] create test_settings --- .travis.yml | 4 ++-- rest_auth/test_settings.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 rest_auth/test_settings.py diff --git a/.travis.yml b/.travis.yml index 2a5c2af..7931ba9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ python: - "2.6" - "2.7" env: - - DJANGO=1.5.7 DJANGO_SETTINGS_MODULE="django_common.test_settings" - - DJANGO=1.6.4 DJANGO_SETTINGS_MODULE="django_common.test_settings" + - DJANGO=1.5.7 DJANGO_SETTINGS_MODULE="rest_auth.test_settings" + - DJANGO=1.6.4 DJANGO_SETTINGS_MODULE="rest_auth.test_settings" install: - pip install -q Django==$DJANGO --use-mirrors script: diff --git a/rest_auth/test_settings.py b/rest_auth/test_settings.py new file mode 100644 index 0000000..9b565d8 --- /dev/null +++ b/rest_auth/test_settings.py @@ -0,0 +1,17 @@ +import django + +if django.VERSION[:2] >= (1, 3): + DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': ':memory:', + } + } +else: + DATABASE_ENGINE = 'sqlite3' + +INSTALLED_APPS = [ + 'rest_auth', +] + +SECRET_KEY = "38dh*skf8sjfhs287dh&^hd8&3hdg*j2&sd"