From 7e24165c828a64389d593c63299df4ff22dcb881 Mon Sep 17 00:00:00 2001 From: Mateusz Sikora Date: Sat, 3 May 2014 00:01:16 +0200 Subject: [PATCH] disable swagger docs for tests --- rest_auth/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_auth/urls.py b/rest_auth/urls.py index ca2cefe..766d09f 100644 --- a/rest_auth/urls.py +++ b/rest_auth/urls.py @@ -27,7 +27,7 @@ urlpatterns = patterns('rest_auth.views', name='rest_password_change'), ) -if settings.DEBUG: +if settings.DEBUG and not settings.IS_TEST: urlpatterns += patterns('', # Swagger Docs url(r'^docs/',