From 1f173efd7eef774b3fb2f2fa8227109f381b9609 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 22 Mar 2013 22:45:16 +0100 Subject: [PATCH] Custom test settings --- .travis.yml | 2 +- dpaste/settings_test.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 dpaste/settings_test.py diff --git a/.travis.yml b/.travis.yml index 059e4b5..6cd0057 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,4 @@ python: install: - "pip install -r requirements.txt" - "pip install ." -script: manage.py test dpaste \ No newline at end of file +script: manage.py test dpaste --settings=dpaste.settings_test \ No newline at end of file diff --git a/dpaste/settings_test.py b/dpaste/settings_test.py new file mode 100644 index 0000000..cbda395 --- /dev/null +++ b/dpaste/settings_test.py @@ -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' +