Skip generateschema command tests when deps not installed.

This commit is contained in:
Carlton Gibson 2019-04-04 17:44:59 +02:00
parent 609ba5a2b5
commit c23a1d199e

View File

@ -7,7 +7,7 @@ from django.test import TestCase
from django.test.utils import override_settings
from django.utils import six
from rest_framework.compat import yaml
from rest_framework.compat import uritemplate, yaml
from rest_framework.utils import json
from rest_framework.views import APIView
@ -23,6 +23,7 @@ urlpatterns = [
@override_settings(ROOT_URLCONF=__name__)
@pytest.mark.skipif(not uritemplate, reason='uritemplate is not installed')
class GenerateSchemaTests(TestCase):
"""Tests for management command generateschema."""