mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 04:07:16 +03:00
Improved tests
This commit is contained in:
parent
6f6762180d
commit
739856af73
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user