Merge pull request #631 from graphql-python/fix-628

Fix importing error for GraphQLTestCase
This commit is contained in:
Paul Hallett 2019-05-13 18:12:22 +01:00 committed by GitHub
commit e26a9f2a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 11 deletions

View File

@ -9,7 +9,7 @@ Usage:
import json import json
from graphene_django.tests.base_test import GraphQLTestCase from graphene_django.utils.testing import GraphQLTestCase
from my_project.config.schema import schema from my_project.config.schema import schema
class MyFancyTestCase(GraphQLTestCase): class MyFancyTestCase(GraphQLTestCase):

View File

@ -0,0 +1,19 @@
from .utils import (
DJANGO_FILTER_INSTALLED,
get_reverse_fields,
maybe_queryset,
get_model_fields,
is_valid_django_model,
import_single_dispatch,
)
from .testing import GraphQLTestCase
__all__ = [
"DJANGO_FILTER_INSTALLED",
"get_reverse_fields",
"maybe_queryset",
"get_model_fields",
"is_valid_django_model",
"import_single_dispatch",
"GraphQLTestCase",
]

View File

@ -1,8 +1,6 @@
import json import json
from django.http import HttpResponse from django.test import TestCase, Client
from django.test import Client
from django.test import TestCase
class GraphQLTestCase(TestCase): class GraphQLTestCase(TestCase):

View File

@ -4,13 +4,6 @@ from django.db import models
from django.db.models.manager import Manager from django.db.models.manager import Manager
# from graphene.utils import LazyList
class LazyList(object):
pass
try: try:
import django_filters # noqa import django_filters # noqa