mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Custom test settings
This commit is contained in:
parent
bcdea97073
commit
1f173efd7e
2 changed files with 17 additions and 1 deletions
|
@ -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
16
dpaste/settings_test.py
Normal 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'
|
||||||
|
|
Loading…
Reference in a new issue