mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
17 lines
361 B
Python
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 = []
|