mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-31 18:40:07 +03:00
Place generateschema tests with other schema tests.
This commit is contained in:
parent
8b3a54ea98
commit
88005c79fa
|
@ -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."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user