Skip to content

Commit d8ca3c0

Browse files
committed
Cleaned tests
1 parent bebdf5c commit d8ca3c0

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

graphene/contrib/django/tests/test_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
from django.db import models
31
from py.test import raises
2+
from django.db import models
43

54
import graphene
65
from graphene.contrib.django.converter import convert_django_field

graphene/contrib/django/tests/test_types.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
1+
from graphql.core.type import GraphQLInterfaceType, GraphQLObjectType
22

33
from graphene import Schema
44
from graphene.contrib.django.types import DjangoInterface, DjangoNode
55
from graphene.core.fields import Field
66
from graphene.core.types.scalars import Int
77
from graphene.relay.fields import GlobalIDField
8-
from graphql.core.type import GraphQLInterfaceType, GraphQLObjectType
98
from tests.utils import assert_equal_lists
109

1110
from .models import Article, Reporter
@@ -77,12 +76,6 @@ def test_object_type():
7776
object_type.get_fields().keys(),
7877
['headline', 'id', 'reporter', 'pubDate']
7978
)
80-
# assert object_type.get_fields() == {
81-
# 'headline': fields_map['headline'].internal_field(schema),
82-
# 'id': fields_map['id'].internal_field(schema),
83-
# 'reporter': fields_map['reporter'].internal_field(schema),
84-
# 'pubDate': fields_map['pub_date'].internal_field(schema),
85-
# }
8679
assert schema.T(DjangoNode) in object_type.get_interfaces()
8780

8881

graphene/relay/tests/test_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class Part(relay.Node):
2323

2424

2525
def test_node_should_have_same_connection_always():
26-
object()
2726
connection1 = relay.Connection.for_node(OtherNode)
2827
connection2 = relay.Connection.for_node(OtherNode)
2928

0 commit comments

Comments
 (0)