2014-03-02 15:40:30 +04:00
|
|
|
"""
|
2017-10-02 14:26:44 +03:00
|
|
|
URLConf for test suite.
|
|
|
|
|
|
|
|
We need only the docs urls for DocumentationRenderer tests.
|
2014-03-02 15:40:30 +04:00
|
|
|
"""
|
2020-09-08 17:32:27 +03:00
|
|
|
from django.urls import path
|
2017-10-05 21:41:38 +03:00
|
|
|
|
2018-06-22 11:16:57 +03:00
|
|
|
from rest_framework.compat import coreapi
|
2017-10-02 14:26:44 +03:00
|
|
|
from rest_framework.documentation import include_docs_urls
|
|
|
|
|
2018-06-22 11:16:57 +03:00
|
|
|
if coreapi:
|
|
|
|
urlpatterns = [
|
2020-09-08 17:32:27 +03:00
|
|
|
path('docs/', include_docs_urls(title='Test Suite API')),
|
2018-06-22 11:16:57 +03:00
|
|
|
]
|
|
|
|
else:
|
|
|
|
urlpatterns = []
|