From ccae22a247df568ef9100a71d09fcb8274f986dd Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Fri, 18 Aug 2023 00:23:41 +0200 Subject: [PATCH] Bug 1849257 - disable django debug toolbar for test execution --- tests/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/settings.py b/tests/settings.py index 55afe891c64..c41e71ea184 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -27,4 +27,11 @@ # For Push Health Usage dashboard NEW_RELIC_INSIGHTS_API_KEY = "123" +# This controls whether the Django debug toolbar should be shown or not +# https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#show-toolbar-callback +# "You can provide your own function callback(request) which returns True or False." +DEBUG_TOOLBAR_CONFIG = { + 'SHOW_TOOLBAR_CALLBACK': lambda request: False, +} + INSTALLED_APPS.remove('django.contrib.staticfiles') # noqa: F405