mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
Cleaned tests
This commit is contained in:
parent
bebdf5cf9b
commit
d8ca3c089a
|
@ -1,6 +1,5 @@
|
|||
|
||||
from django.db import models
|
||||
from py.test import raises
|
||||
from django.db import models
|
||||
|
||||
import graphene
|
||||
from graphene.contrib.django.converter import convert_django_field
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
|
||||
from graphql.core.type import GraphQLInterfaceType, GraphQLObjectType
|
||||
|
||||
from graphene import Schema
|
||||
from graphene.contrib.django.types import DjangoInterface, DjangoNode
|
||||
from graphene.core.fields import Field
|
||||
from graphene.core.types.scalars import Int
|
||||
from graphene.relay.fields import GlobalIDField
|
||||
from graphql.core.type import GraphQLInterfaceType, GraphQLObjectType
|
||||
from tests.utils import assert_equal_lists
|
||||
|
||||
from .models import Article, Reporter
|
||||
|
@ -77,12 +76,6 @@ def test_object_type():
|
|||
object_type.get_fields().keys(),
|
||||
['headline', 'id', 'reporter', 'pubDate']
|
||||
)
|
||||
# assert object_type.get_fields() == {
|
||||
# 'headline': fields_map['headline'].internal_field(schema),
|
||||
# 'id': fields_map['id'].internal_field(schema),
|
||||
# 'reporter': fields_map['reporter'].internal_field(schema),
|
||||
# 'pubDate': fields_map['pub_date'].internal_field(schema),
|
||||
# }
|
||||
assert schema.T(DjangoNode) in object_type.get_interfaces()
|
||||
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ def test_field_no_contributed_raises_error():
|
|||
|
||||
|
||||
def test_node_should_have_same_connection_always():
|
||||
object()
|
||||
connection1 = relay.Connection.for_node(OtherNode)
|
||||
connection2 = relay.Connection.for_node(OtherNode)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user