django-rest-framework/tests/urls.py
2018-06-22 10:16:57 +02:00

17 lines
361 B
Python

"""
URLConf for test suite.
We need only the docs urls for DocumentationRenderer tests.
"""
from django.conf.urls import url
from rest_framework.compat import coreapi
from rest_framework.documentation import include_docs_urls
if coreapi:
urlpatterns = [
url(r'^docs/', include_docs_urls(title='Test Suite API')),
]
else:
urlpatterns = []