Place generateschema tests with other schema tests.

This commit is contained in:
Carlton Gibson 2019-04-04 15:57:22 +02:00
parent 8a80aad894
commit 63255e623c

View File

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