Changes to run e2e test on devstack

This commit is contained in:
zia.fazal@arbisoft.com
2020-07-13 19:21:03 +05:00
parent 8c93a144c0
commit 03d788e1c3
2 changed files with 4 additions and 2 deletions

View File

@@ -108,7 +108,8 @@ DEBUG_TOOLBAR_CONFIG = {
def should_show_debug_toolbar(request):
# We always want the toolbar on devstack unless running tests from another Docker container
if request.get_host().startswith('edx.devstack.studio:'):
hostname = request.get_host()
if hostname.startswith('edx.devstack.studio:') or hostname.startswith('studio.devstack.edx:'):
return False
return True

View File

@@ -105,7 +105,8 @@ DEBUG_TOOLBAR_CONFIG = {
def should_show_debug_toolbar(request):
# We always want the toolbar on devstack unless running tests from another Docker container
if request.get_host().startswith('edx.devstack.lms:'):
hostname = request.get_host()
if hostname.startswith('edx.devstack.lms:') or hostname.startswith('lms.devstack.edx:'):
return False
return True