No need to create a Schema in test_fields.py

This commit is contained in:
Adam Charnock 2015-12-03 11:42:08 +00:00
parent 0c7be5c86e
commit e270792674

View File

@ -1,21 +1,14 @@
from graphene import Schema
from graphene.contrib.django import DjangoFilterConnectionField, DjangoNode
from graphene.contrib.django.tests.filters import ArticleFilter, PetFilter
from graphene.contrib.django.tests.models import Article, Pet
schema = Schema()
@schema.register
class ArticleNode(DjangoNode):
class Meta:
model = Article
@schema.register
class PetNode(DjangoNode):
class Meta:
model = Pet