Add test settings file, mainly for PRODUCTION_DOMAIN setting in tests.

refactor-builder
Eric Holscher 2014-01-09 00:31:55 -05:00
parent ba317f3519
commit 7cc9f707ee
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,16 @@
import os.path
from .sqlite import * # noqa
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
SLUMBER_USERNAME = 'test'
SLUMBER_PASSWORD = 'test'
SLUMBER_API_HOST = 'http://localhost:8000'
# A bunch of our tests check this value in a returned URL/Domain
PRODUCTION_DOMAIN = 'readthedocs.org'
try:
from local_settings import * # noqa
except:
pass

View File

@ -1,3 +1,3 @@
cd readthedocs
./manage.py test rtd_tests --logging-clear-handlers
DJANGO_SETTINGS_MODULE=settings.test ./manage.py test rtd_tests --logging-clear-handlers
cd -