Custom test settings

This commit is contained in:
Martin Mahner 2013-03-22 22:45:16 +01:00
parent bcdea97073
commit 1f173efd7e
2 changed files with 17 additions and 1 deletions

View file

@ -4,4 +4,4 @@ python:
install: install:
- "pip install -r requirements.txt" - "pip install -r requirements.txt"
- "pip install ." - "pip install ."
script: manage.py test dpaste script: manage.py test dpaste --settings=dpaste.settings_test

16
dpaste/settings_test.py Normal file
View file

@ -0,0 +1,16 @@
from dpaste.settings import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'dev.db',
'USER': '',
'PASSWORD': '',
}
}
SECRET_KEY = 'TESTING_TESTING'