Skip to content

Commit e61af55

Browse files
committed
Skip generateschema command tests when deps not installed.
1 parent 8a5e963 commit e61af55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/schemas/test_managementcommand.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from django.test.utils import override_settings
88
from django.utils import six
99

10-
from rest_framework.compat import yaml
10+
from rest_framework.compat import uritemplate, yaml
1111
from rest_framework.utils import json
1212
from rest_framework.views import APIView
1313

@@ -23,6 +23,7 @@ def get(self, request):
2323

2424

2525
@override_settings(ROOT_URLCONF=__name__)
26+
@pytest.mark.skipif(not uritemplate, reason='uritemplate is not installed')
2627
class GenerateSchemaTests(TestCase):
2728
"""Tests for management command generateschema."""
2829

0 commit comments

Comments
 (0)