mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-30 05:23:57 +03:00
Moved django filter tests
This commit is contained in:
parent
8eaa2cfc49
commit
c7026329d3
|
@ -13,7 +13,7 @@ if DJANGO_FILTER_INSTALLED:
|
||||||
import django_filters
|
import django_filters
|
||||||
from graphene.contrib.django.filter import (GlobalIDFilter, DjangoFilterConnectionField,
|
from graphene.contrib.django.filter import (GlobalIDFilter, DjangoFilterConnectionField,
|
||||||
GlobalIDMultipleChoiceFilter)
|
GlobalIDMultipleChoiceFilter)
|
||||||
from graphene.contrib.django.tests.filter.filters import ArticleFilter, PetFilter
|
from graphene.contrib.django.filter.tests.filters import ArticleFilter, PetFilter
|
||||||
else:
|
else:
|
||||||
pytestmark.append(pytest.mark.skipif(True, reason='django_filters not installed'))
|
pytestmark.append(pytest.mark.skipif(True, reason='django_filters not installed'))
|
||||||
|
|
|
@ -8,7 +8,7 @@ from graphene.contrib.django.utils import DJANGO_FILTER_INSTALLED
|
||||||
|
|
||||||
if DJANGO_FILTER_INSTALLED:
|
if DJANGO_FILTER_INSTALLED:
|
||||||
from graphene.contrib.django.filter.resolvers import FilterConnectionResolver
|
from graphene.contrib.django.filter.resolvers import FilterConnectionResolver
|
||||||
from graphene.contrib.django.tests.filter.filters import ReporterFilter, ArticleFilter
|
from graphene.contrib.django.filter.tests.filters import ArticleFilter, ReporterFilter
|
||||||
else:
|
else:
|
||||||
pytestmark = pytest.mark.skipif(True, reason='django_filters not installed')
|
pytestmark = pytest.mark.skipif(True, reason='django_filters not installed')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user