Skip to content

Commit

Permalink
Bug 1849257 - disable django debug toolbar for test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Archaeopteryx committed Aug 30, 2023
1 parent 8a4cbfc commit ccae22a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ccae22a

Please sign in to comment.