PLAT-1590 Fixes for Docker Devstack e2e tests

This commit is contained in:
Jeremy Bowman
2017-07-26 15:07:57 -04:00
parent 5fea8b8b66
commit 70c0b7bd3d
4 changed files with 8 additions and 6 deletions

View File

@@ -90,8 +90,9 @@ DEBUG_TOOLBAR_CONFIG = {
}
def should_show_debug_toolbar(_):
return True # We always want the toolbar on devstack regardless of IP, auth, etc.
def should_show_debug_toolbar(request):
# We always want the toolbar on devstack unless running tests from another Docker container
return not request.get_host().startswith('edx.devstack.studio:')
# To see stacktraces for MongoDB queries, set this to True.