From 84bb5ea4fffe059677f32c09f21e05f907ead7df Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 24 Jun 2016 11:23:31 +0100 Subject: [PATCH] Do not use schmea in tests if coreapi is not installed --- tests/test_schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_schemas.py b/tests/test_schemas.py index 0341d0df5..7d3308ed9 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -31,7 +31,7 @@ class ExampleViewSet(ModelViewSet): serializer_class = ExampleSerializer -router = DefaultRouter(schema_title='Example API') +router = DefaultRouter(schema_title='Example API' if coreapi else None) router.register('example', ExampleViewSet, base_name='example') urlpatterns = [ url(r'^', include(router.urls))