Improved tests

This commit is contained in:
Syrus Akbary 2015-10-13 19:10:31 -07:00
parent 6f6762180d
commit 739856af73

View File

@ -46,6 +46,8 @@ schema = object()
Human_type = Human.internal_type(schema)
def test_type():
assert Human._meta.fields_map['name'].resolve(Human(object()), 1, 2) == 'Peter'
def test_query():
schema = GraphQLSchema(query=Human_type)