mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +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'),
|
name='rest_password_change'),
|
||||||
)
|
)
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG and not settings.IS_TEST:
|
||||||
urlpatterns += patterns('',
|
urlpatterns += patterns('',
|
||||||
# Swagger Docs
|
# Swagger Docs
|
||||||
url(r'^docs/',
|
url(r'^docs/',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user