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 9
9
10
10
import json
11
11
12
- from graphene_django.tests.base_test import GraphQLTestCase
12
+ from graphene_django.utils.testing import GraphQLTestCase
13
13
from my_project.config.schema import schema
14
14
15
15
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 1
1
import json
2
2
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
6
4
7
5
8
6
class GraphQLTestCase (TestCase ):
Original file line number Diff line number Diff line change 4
4
from django .db .models .manager import Manager
5
5
6
6
7
- # from graphene.utils import LazyList
8
-
9
-
10
- class LazyList (object ):
11
- pass
12
-
13
-
14
7
try :
15
8
import django_filters # noqa
16
9
You can’t perform that action at this time.
0 commit comments