mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 00:56:34 +03:00
create test_settings
This commit is contained in:
parent
9431362694
commit
1c8d2f6d56
|
@ -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:
|
||||
|
|
17
rest_auth/test_settings.py
Normal file
17
rest_auth/test_settings.py
Normal file
|
@ -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"
|
Loading…
Reference in New Issue
Block a user