Added code to the test_runner to force SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE to True during testing, to avoid triggering the system checks error which doesn't find the CDN symlink expected when serving static files via CDN.

- Legacy-Id: 9910
This commit is contained in:
Henrik Levkowetz 2015-07-28 11:02:00 +00:00
parent 6468a43840
commit 9cec8a0587

View file

@ -355,6 +355,10 @@ class IetfTestRunner(DiscoverRunner):
print " Changing TEMPLATE_STRING_IF_INVALID to '' during testing."
settings.TEMPLATE_STRING_IF_INVALID = ''
if settings.SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE != True:
print " Changing SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE to 'True' during testing."
settings.SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE = True
assert not settings.IDTRACKER_BASE_URL.endswith('/')
# Try to set up an SMTP test server. In case other test runs are