Skip to content

Fix importing error for GraphQLTestCase #631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Usage:

import json

from graphene_django.tests.base_test import GraphQLTestCase
from graphene_django.utils.testing import GraphQLTestCase
from my_project.config.schema import schema

class MyFancyTestCase(GraphQLTestCase):
Expand Down
19 changes: 19 additions & 0 deletions graphene_django/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import json

from django.http import HttpResponse
from django.test import Client
from django.test import TestCase
from django.test import TestCase, Client


class GraphQLTestCase(TestCase):
Expand Down
7 changes: 0 additions & 7 deletions graphene_django/utils.py → graphene_django/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
from django.db.models.manager import Manager


# from graphene.utils import LazyList


class LazyList(object):
pass


try:
import django_filters # noqa

Expand Down