Skip to content

Commit 9cec8a0

Browse files
committed
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
1 parent 6468a43 commit 9cec8a0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/utils/test_runner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ def setup_test_environment(self, **kwargs):
355355
print " Changing TEMPLATE_STRING_IF_INVALID to '' during testing."
356356
settings.TEMPLATE_STRING_IF_INVALID = ''
357357

358+
if settings.SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE != True:
359+
print " Changing SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE to 'True' during testing."
360+
settings.SERVE_CDN_FILES_LOCALLY_IN_DEV_MODE = True
361+
358362
assert not settings.IDTRACKER_BASE_URL.endswith('/')
359363

360364
# Try to set up an SMTP test server. In case other test runs are

0 commit comments

Comments
 (0)