File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed
Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 99
1010 import json
1111
12- from graphene_django.tests.base_test import GraphQLTestCase
12+ from graphene_django.utils.testing import GraphQLTestCase
1313 from my_project.config.schema import schema
1414
1515 class MyFancyTestCase (GraphQLTestCase ):
Original file line number Diff line number Diff line change 1+ from .utils import (
2+ DJANGO_FILTER_INSTALLED ,
3+ get_reverse_fields ,
4+ maybe_queryset ,
5+ get_model_fields ,
6+ is_valid_django_model ,
7+ import_single_dispatch ,
8+ )
9+ from .testing import GraphQLTestCase
10+
11+ __all__ = [
12+ "DJANGO_FILTER_INSTALLED" ,
13+ "get_reverse_fields" ,
14+ "maybe_queryset" ,
15+ "get_model_fields" ,
16+ "is_valid_django_model" ,
17+ "import_single_dispatch" ,
18+ "GraphQLTestCase" ,
19+ ]
Original file line number Diff line number Diff line change 11import json
22
3- from django .http import HttpResponse
4- from django .test import Client
5- from django .test import TestCase
3+ from django .test import TestCase , Client
64
75
86class GraphQLTestCase (TestCase ):
Original file line number Diff line number Diff line change 44from django .db .models .manager import Manager
55
66
7- # from graphene.utils import LazyList
8-
9-
10- class LazyList (object ):
11- pass
12-
13-
147try :
158 import django_filters # noqa
169
You can’t perform that action at this time.
0 commit comments