mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
Fixed tests
This commit is contained in:
parent
2e1f154441
commit
b3fbac5818
|
@ -11,6 +11,7 @@ from graphene_django.tests.models import Article, Pet, Reporter
|
|||
from graphene_django.utils import DJANGO_FILTER_INSTALLED
|
||||
|
||||
pytestmark = []
|
||||
|
||||
if DJANGO_FILTER_INSTALLED:
|
||||
import django_filters
|
||||
from graphene_django.filter import (GlobalIDFilter, DjangoFilterConnectionField,
|
||||
|
@ -22,6 +23,7 @@ else:
|
|||
pytestmark.append(pytest.mark.django_db)
|
||||
|
||||
|
||||
if DJANGO_FILTER_INSTALLED:
|
||||
class ArticleNode(DjangoObjectType):
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in New Issue
Block a user