PLAT-1382 Populate ALLOWED_HOSTS for tests

This commit is contained in:
Jeremy Bowman
2017-12-05 14:22:30 -05:00
parent cc6e3219ed
commit da8cf6b528
12 changed files with 22 additions and 21 deletions

View File

@@ -40,6 +40,15 @@ from lms.envs.test import (
REGISTRATION_EXTRA_FIELDS,
)
# Add some host names used in assorted tests
ALLOWED_HOSTS = [
'localhost',
'logistration.testserver',
'.testserver.fake',
'test-site.testserver',
'testserver.fakeother',
]
# mongo connection settings
MONGO_PORT_NUM = int(os.environ.get('EDXAPP_TEST_MONGO_PORT', '27017'))
MONGO_HOST = os.environ.get('EDXAPP_TEST_MONGO_HOST', 'localhost')