Add test settings file, mainly for PRODUCTION_DOMAIN setting in tests.
parent
ba317f3519
commit
7cc9f707ee
|
@ -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
|
|
@ -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 -
|
||||
|
|
Loading…
Reference in New Issue