mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 00:56:34 +03:00
disable swagger docs for tests
This commit is contained in:
parent
d2f9261703
commit
7e24165c82
|
@ -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/',
|
||||
|
|
Loading…
Reference in New Issue
Block a user