disable swagger docs for tests

This commit is contained in:
Mateusz Sikora 2014-05-03 00:01:16 +02:00
parent d2f9261703
commit 7e24165c82

View File

@ -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/',