Fixed Django 1.8 issue

This commit is contained in:
Syrus Akbary 2017-03-02 18:38:03 -08:00
parent 28db2c0506
commit 335339c7a8

View File

@ -9,7 +9,7 @@ import graphene
from graphene.relay import Node
from ..utils import DJANGO_FILTER_INSTALLED
from ..compat import MissingType, RangeField
from ..compat import MissingType, JSONField
from ..fields import DjangoConnectionField
from ..types import DjangoObjectType
from .models import Article, Reporter
@ -100,7 +100,7 @@ def test_should_query_well():
assert result.data == expected
@pytest.mark.skipif(RangeField is MissingType,
@pytest.mark.skipif(JSONField is MissingType,
reason="RangeField should exist")
def test_should_query_postgres_fields():
from django.contrib.postgres.fields import IntegerRangeField, ArrayField, JSONField, HStoreField