Add simple tests for the stat views

We check that we can get all the stats views with the appropriate
permissions.
This commit is contained in:
Martin Pépin 2017-04-03 22:55:54 +01:00
parent 10d2b58fa7
commit f13d1072c7
2 changed files with 68 additions and 3 deletions

View file

@ -84,7 +84,7 @@ urlpatterns = [
url(r'^k-fet/', include('kfet.urls')),
]
if settings.DEBUG:
if 'debug_toolbar' in settings.INSTALLED_APPS:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),